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 listJul 15, 2022 00:01Robert BurkeRobert BurkeScore: 8,282Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 15, 2022 00:018,22489,942,44366,255,0002,007,0002,514,944
2Jul 15, 2022 00:018,24099,625,67267,391,0001,005,0002,285,568
3Jul 15, 2022 00:018,25799,585,70467,524,0001,007,0002,265,088
4Jul 15, 2022 00:018,26994,709,09867,624,0001,009,0002,265,088
5Jul 15, 2022 00:018,27195,393,90767,638,0001,009,0002,519,040
6Jul 15, 2022 00:018,272101,015,82567,649,0001,009,0002,285,568
7Jul 15, 2022 00:018,27394,036,35367,658,0001,009,0002,285,568
8Jul 15, 2022 00:018,28294,693,16168,744,00002,265,088
9Jul 15, 2022 00:018,289100,440,48866,803,0001,994,0002,285,568
10Jul 15, 2022 00:018,296100,696,94866,862,0001,995,0002,285,568
11Jul 15, 2022 00:018,296100,349,67467,860,000997,0002,285,568
12Jul 15, 2022 00:018,29699,074,90567,857,000997,0002,260,992
13Jul 15, 2022 00:018,881128,742,12573,716,14602,273,280
14Jul 15, 2022 00:018,895155,551,29773,825,27902,277,376
15Jul 15, 2022 00:018,895133,658,77273,827,10002,277,376