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 listApr 20, 2026 16:55olliecrowolliecrowError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 16:55021,378,53302,147,0002,510,848expected "53695751681256843 ", got "1556805990,567537145,433950182 "
2Apr 20, 2026 16:55024,725,14002,122,0002,510,848expected "53689250141231745 ", got "1036501139,1223097690,656410652 "
3Apr 20, 2026 16:55020,555,77702,127,0002,510,848expected "53688931898270021 ", got "1066394509,657820948,1715611585 "