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 25, 2024 13:18GraceGraceScore: 7,847Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2024 13:187,367113,758,54661,147,39902,297,856
2May 25, 2024 13:187,368127,653,66161,158,39702,297,856
3May 25, 2024 13:187,541124,704,53162,591,10802,297,856
4May 25, 2024 13:187,70688,590,71261,958,0001,998,0002,285,568
5May 25, 2024 13:187,77089,783,95064,495,00002,285,568
6May 25, 2024 13:187,83794,343,15263,047,0002,001,0002,285,568
7May 25, 2024 13:187,84487,128,08663,105,0002,003,0002,285,568
8May 25, 2024 13:187,84789,732,51563,128,0002,004,0002,285,568
9May 25, 2024 13:187,85593,583,51063,191,0002,006,0002,527,232
10May 25, 2024 13:187,85792,489,61063,207,0002,006,0002,285,568
11May 25, 2024 13:187,86798,359,99464,292,0001,004,0002,285,568
12May 25, 2024 13:187,88290,513,42164,415,0001,006,0002,285,568
13May 25, 2024 13:189,957107,081,40381,636,0001,007,0002,269,184
14May 25, 2024 13:1810,031109,411,06881,254,0002,006,0002,273,280
15May 25, 2024 13:1810,065107,567,91182,533,0001,006,0002,265,088