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 13, 2026 23:56drewbumpasdrewbumpasError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 13, 2026 23:5704,356,119,4964,283,791,00062,044,0002,113,536expected "53688024310794468 ", got "20043767364765924"
2Sep 13, 2026 23:5704,355,636,0444,282,326,00063,081,0002,113,536expected "53687304868167979 ", got "20049327164326187"
3Sep 13, 2026 23:5704,357,077,2724,283,480,00063,048,0002,113,536expected "53698095178771883 ", got "20041820914249131"