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 17:45Victor 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 17:45045,888,29428,919,0001,109,0002,113,536expected "53685438925480720 ", got "1108686476565196390 "
2May 18, 2026 17:45038,112,94028,251,0001,131,0002,113,536expected "53686976299675596 ", got "1099997571351828377 "
3May 18, 2026 17:45039,821,82228,198,0001,055,0002,113,536expected "53683981994486077 ", got "670872543380344004 "