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:39EdgarEdgarError
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:390181,257,386166,930,0004,004,00024,576expected "53694875893261678 ", got "53694875893261591 "
2Sep 24, 2026 04:390181,476,658167,246,0003,898,00024,576expected "53685974824833540 ", got "53685974824833426 "
3Sep 24, 2026 04:390182,144,835168,056,0003,752,00024,576expected "53681296928495824 ", got "53681296928495752 "