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:53Andrey 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:530347,134,838334,543,0002,152,0002,138,112expected "53689635143635719 ", got "5474478520003359084 "
2Aug 2, 2026 11:530347,698,398334,869,0002,195,0002,138,112expected "53691284780642064 ", got "5343367995635692371 "
3Aug 2, 2026 11:530347,369,179334,643,0002,132,0002,138,112expected "53680989333609977 ", got "4377592770296191406 "