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 listDec 31, 2022 16:58Jack FrigaardJack FrigaardScore: 5,134Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2022 16:585,08462,680,37039,184,0003,014,0002,260,992
2Dec 31, 2022 16:585,09161,187,88139,239,0003,018,0002,260,992
3Dec 31, 2022 16:585,09270,553,21239,247,0003,019,0002,523,136
4Dec 31, 2022 16:585,09568,038,24739,272,0003,020,0002,260,992
5Dec 31, 2022 16:585,10070,320,87239,305,0003,023,0002,260,992
6Dec 31, 2022 16:585,10563,647,80541,365,0001,008,0002,523,136
7Dec 31, 2022 16:585,12968,720,79540,540,0002,027,0002,453,504
8Dec 31, 2022 16:585,13473,251,33640,587,0002,029,0002,260,992
9Dec 31, 2022 16:585,15968,705,31139,832,0002,987,0002,453,504
10Dec 31, 2022 16:585,18671,254,22640,044,0003,003,0002,260,992
11Dec 31, 2022 16:585,19069,070,46941,075,0002,003,0002,260,992
12Dec 31, 2022 16:585,20970,160,32940,220,0003,016,0002,260,992
13Dec 31, 2022 16:585,301102,752,29944,002,32002,207,744
14Dec 31, 2022 16:585,313123,895,47344,098,00802,199,552
15Dec 31, 2022 16:585,320105,890,75444,152,39402,203,648