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 5, 2024 12:30Aleksey ZhakovAleksey ZhakovScore: 1,648,744Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 12:301,647,34313,735,344,57213,672,943,60902,256,896
2May 5, 2024 12:301,648,74413,749,102,02613,684,571,19102,260,992
3May 5, 2024 12:301,652,66113,792,611,22113,717,087,13202,260,992