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 listNov 5, 2026 15:21janwwwjanwwwError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 5, 2026 15:2102,320,717,3332,249,345,00061,730,0002,125,824expected "53688826503215865 ", got "0 "stderr
2Nov 5, 2026 15:2102,325,158,0132,253,615,00062,196,0002,125,824expected "53682701033073176 ", got "0 "stderr
3Nov 5, 2026 15:2102,322,896,0942,251,688,00061,879,0002,125,824expected "53691919143352257 ", got "0 "stderr