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 11, 2026 14:01Victor 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 11, 2026 14:01087,459,07375,707,0001,038,0002,113,536expected "53688637720599659 ", got "53699137084599659 "
2May 11, 2026 14:01085,363,52275,349,0001,019,0002,113,536expected "53686952047352454 ", got "53697760096352454 "
3May 11, 2026 14:01086,755,58975,101,0001,252,0002,113,536expected "53683036699359336 ", got "53693585050259336 "