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 21, 2025 17:52vahookvahookError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2025 17:5400000Error: expected "53690413649238317 ", got "53690413821721646 "stderr
2May 21, 2025 17:524,52766,388,78635,541,0002,030,0002,424,832
3May 21, 2025 17:524,56062,241,85033,862,0003,983,0002,273,280
4May 21, 2025 17:524,56064,616,86035,856,0001,992,0002,437,120
5May 21, 2025 17:524,58864,405,10435,074,0003,006,0002,273,280
6May 21, 2025 17:524,60060,906,61835,163,0003,013,0002,273,280
7May 21, 2025 17:524,62057,338,83735,320,0003,027,0002,424,832