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 listApr 25, 2026 23:29zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 23:29046,942,60328,143,0001,005,0002,371,584expected "53678638934954980 ", got "X3678638934954980 "stderr
2Apr 25, 2026 23:29047,612,89527,084,0002,006,0002,367,488expected "53685554686974453 ", got "X3685554686974453 "stderr
3Apr 25, 2026 23:29049,261,43127,184,0002,013,0002,355,200expected "53687551965719826 ", got "X3687552096309438 "stderr