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 listMay 27, 2024 13:59GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 13:5900000Error: expected "53689287616529497 ", got "53689287616463961 "
2May 27, 2024 13:595,93475,517,01047,246,0002,010,0002,383,872
3May 27, 2024 13:595,94273,793,33448,311,0001,006,0002,383,872
4May 27, 2024 14:005,94475,629,63849,336,00002,383,872
5May 27, 2024 13:595,94674,135,74848,341,0001,007,0002,523,136
6May 27, 2024 13:595,94772,146,21548,353,0001,007,0002,256,896
7May 27, 2024 13:595,95072,539,50948,380,0001,007,0002,256,896
8May 27, 2024 13:595,95169,297,66149,391,00002,260,992
9May 27, 2024 13:595,95370,294,74248,400,0001,008,0002,383,872
10May 27, 2024 14:005,95370,797,77548,404,0001,008,0002,375,680
11May 27, 2024 13:595,95578,918,01849,427,00002,260,992
12May 27, 2024 14:005,95582,424,54348,417,0001,008,0002,383,872
13May 27, 2024 13:595,95976,049,08348,448,0001,009,0002,387,968
14May 27, 2024 13:595,95977,014,89748,448,0001,009,0002,523,136
15May 27, 2024 13:595,95975,117,13548,452,0001,009,0002,260,992
16May 27, 2024 13:595,96171,435,30449,475,00002,260,992
17May 27, 2024 13:595,96170,928,35548,471,0001,009,0002,260,992
18May 27, 2024 14:005,96373,874,37649,494,00002,260,992
19May 27, 2024 14:005,96375,562,07549,492,00002,260,992
20May 27, 2024 14:005,96770,868,55549,526,00002,260,992
21May 27, 2024 13:595,96969,780,20448,535,0001,011,0002,383,872
22May 27, 2024 13:595,97681,328,53749,604,00002,387,968
23May 27, 2024 13:595,97780,969,14248,599,0001,012,0002,260,992
24May 27, 2024 13:595,97980,237,60148,614,0001,012,0002,260,992
25May 27, 2024 14:005,98474,564,91747,679,0001,986,0002,523,136
26May 27, 2024 14:006,00476,008,06948,835,000996,0002,260,992
27May 27, 2024 14:006,06077,024,44649,293,0001,005,0002,523,136
28May 27, 2024 14:006,06276,903,46950,313,00002,387,968
29May 27, 2024 13:596,07377,249,19350,410,00002,523,136
30May 27, 2024 14:006,07578,317,57349,412,0001,008,0002,387,968
31May 27, 2024 13:596,07774,597,81649,434,0001,008,0002,392,064
32May 27, 2024 13:596,07773,381,15349,434,0001,008,0002,383,872
33May 27, 2024 13:596,08477,625,30649,488,0001,009,0002,260,992
34May 27, 2024 14:006,10479,377,29149,649,0001,013,0002,260,992
35May 27, 2024 13:596,11783,256,70248,779,0001,990,0002,260,992
36May 27, 2024 13:596,12476,821,74849,834,000996,0002,506,752
37May 27, 2024 13:596,12480,774,92849,837,000996,0002,260,992
38May 27, 2024 13:596,155118,621,63651,088,12202,273,280
39May 27, 2024 13:596,163127,442,30051,154,00402,269,184
40May 27, 2024 13:596,165113,615,15451,172,54402,277,376
41May 27, 2024 14:006,166119,042,88451,174,83002,269,184
42May 27, 2024 13:596,166121,627,21451,176,96902,269,184
43May 27, 2024 14:006,167115,126,38051,182,52702,281,472
44May 27, 2024 14:006,181127,202,00751,305,68602,260,992
45May 27, 2024 13:596,191125,916,48851,382,00602,265,088
46May 27, 2024 13:596,210107,466,78751,544,54502,273,280