Parse integers Sergey Svistunov

Compute the sum of integers read from STDIN as fast as possible.

Input: 50 000 000 lines, each containing one integer in the range [0; 2147483647].

629871117
2024562523
1372689083
1021777120
2111176472

Output: The uint64 sum of all numbers, printed as a decimal string.

Note: Integer overflow is expected – use a 64-bit accumulator.

Back to listSep 6, 2022 17:22Bernard TeoBernard TeoScore: 8,256Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 6, 2022 17:228,24592,157,26368,434,00002,400,256
2Sep 6, 2022 17:228,24993,327,13567,463,0001,006,0002,273,280
3Sep 6, 2022 17:228,25192,839,15367,474,0001,007,0002,281,472
4Sep 6, 2022 17:228,25291,974,54167,486,0001,007,0002,400,256
5Sep 6, 2022 17:228,25489,898,03367,503,0001,007,0002,273,280
6Sep 6, 2022 17:228,25595,652,14567,506,0001,007,0002,273,280
7Sep 6, 2022 17:228,255100,549,36767,511,0001,007,0002,408,448
8Sep 6, 2022 17:228,25689,422,10368,525,00002,408,448
9Sep 6, 2022 17:228,261103,561,32167,558,0001,008,0002,396,160
10Sep 6, 2022 17:229,657107,164,33478,148,0002,003,0002,273,280
11Sep 6, 2022 17:229,660109,395,01379,173,0001,002,0002,273,280
12Sep 6, 2022 17:229,667102,801,57078,233,0002,005,0002,273,280
13Sep 6, 2022 17:229,676133,711,81180,308,28402,277,376
14Sep 6, 2022 17:229,802150,035,01881,359,50402,281,472
15Sep 6, 2022 17:229,811143,059,82981,432,37202,281,472