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 listAug 2, 2026 11:55Andrey TsvetkovAndrey TsvetkovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 2, 2026 11:560336,557,928323,511,0002,081,0002,138,112expected "53681784343051441 ", got "14804567517080844829 "
2Aug 2, 2026 11:560336,437,737323,428,0002,167,0002,138,112expected "53689801495745275 ", got "3812239644246520313 "
3Aug 2, 2026 11:560336,438,410323,423,0002,201,0002,138,112expected "53685768781838276 ", got "17659728479235618432 "