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 31, 2024 04:47GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 04:4700000Error: expected "53692795251307529 ", got "53692795244753929 "
2May 31, 2024 04:4700000Error: expected "53681493355152713 ", got "53681493355087177 "
3May 31, 2024 04:4700000Error: expected "53690444650223659 ", got "53690444643670059 "
4May 31, 2024 04:4700000Error: expected "53689043182365418 ", got "53689043175811818 "
5May 31, 2024 04:4700000Error: expected "53690401920410110 ", got "53690401265050110 "
6May 31, 2024 04:4700000Error: expected "53685003800236239 ", got "53684937602322639 "
7May 31, 2024 04:475,472123,074,13445,418,50002,293,760
8May 31, 2024 04:475,484104,855,02945,515,05402,281,472
9May 31, 2024 04:475,490110,858,81345,568,38802,285,568
10May 31, 2024 04:475,534123,780,32045,934,78402,285,568
11May 31, 2024 04:475,563119,313,74046,170,37002,289,664
12May 31, 2024 04:475,568123,547,73446,215,41702,256,896