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 8, 2026 18:51TonyTonyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 8, 2026 18:52039,717,41228,741,0001,084,0002,113,536expected "53684005048184448 ", got "1011632062371007244 "
2Aug 8, 2026 18:52039,930,54029,023,0001,099,0002,113,536expected "53694671880462579 ", got "3547773291744673545 "
3Aug 8, 2026 18:52039,907,18428,969,0001,105,0002,113,536expected "53678935513134570 ", got "3546315576323420213 "