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 listMay 11, 2026 13:57Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 11, 2026 13:57097,892,73788,024,0001,035,0002,146,304expected "53687600310413886 ", got "53687600284813886 "
2May 11, 2026 13:5710,61197,928,76087,035,0001,043,0002,146,304
3May 11, 2026 13:5710,71799,929,56087,915,0001,043,0002,146,304
4May 11, 2026 13:5710,71999,672,84687,763,0001,209,0002,146,304
5May 11, 2026 13:5710,72098,520,91887,939,0001,043,0002,146,304
6May 11, 2026 13:5710,72297,935,59387,786,0001,213,0002,146,304
7May 11, 2026 13:5710,72698,832,09887,994,0001,035,0002,146,304
8May 11, 2026 13:5710,72799,901,38988,013,0001,028,0002,146,304
9May 11, 2026 13:5710,73399,814,44088,050,0001,034,0002,138,112