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 listOct 24, 2026 19:12timothygktimothygkError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 24, 2026 19:12086,299,52863,636,00011,678,0002,117,632expected "53689716004334242 ", got "53689662907802102 "stderr
2Oct 24, 2026 19:12086,167,98863,728,00011,451,0002,117,632expected "53692145364626506 ", got "53692130990709220 "stderr
3Oct 24, 2026 19:12087,613,62565,697,00010,880,0002,117,632expected "53690256717399858 ", got "53690238984447366 "stderr