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 listSep 24, 2026 04:19EdgarEdgarError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 24, 2026 04:2001,359,149,9761,345,477,0003,201,0002,117,632expected "53692347724758264 ", got "53692348053711257 "
2Sep 24, 2026 04:2001,359,358,4261,345,429,0003,009,0002,121,728expected "53689663494106644 ", got "53689663487965063 "
3Sep 24, 2026 04:2001,359,147,2341,345,830,0003,022,0002,117,632expected "53680602293390812 ", got "53680620287451568 "