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 18, 2026 18:54Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2026 18:54057,962,91447,496,0001,005,0002,113,536expected "53694470627326134 ", got "188800241685377909 "
2May 18, 2026 18:54058,727,19148,120,0001,017,0002,113,536expected "53693142619044698 ", got "188907767307127051 "
3May 18, 2026 18:54056,220,62747,400,0001,023,0002,113,536expected "53679322140622723 ", got "189031694125658762 "