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 listJul 6, 2026 06:31Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 7, 2026 05:04wn10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 05:05041,734,31532,522,0001,088,0002,117,632expected "99999999536226619 ", got "55557716914002235 "stderr
2Jul 7, 2026 05:05041,641,60532,517,0001,048,0002,117,632expected "99999998769617609 ", got "55557716147393225 "stderr
3Jul 7, 2026 05:05041,564,39532,496,0001,023,0002,117,632expected "99999999757111276 ", got "55557717134886892 "stderr
4Jul 6, 2026 06:324,07841,815,16832,738,0001,116,0002,117,632stderr
5Jul 6, 2026 06:324,07941,860,38832,828,0001,034,0002,117,632stderr
6Jul 6, 2026 06:324,08841,933,54632,921,0001,011,0002,117,632stderr
7Jul 6, 2026 06:324,09241,901,21432,923,0001,043,0002,117,632stderr
8Jul 6, 2026 06:324,09641,995,33732,988,0001,013,0002,117,632stderr
9Jul 6, 2026 06:324,10541,913,60432,979,0001,096,0002,117,632stderr
10Jul 6, 2026 06:324,10842,088,84733,080,0001,023,0002,117,632stderr
11Jul 6, 2026 06:324,11042,081,47433,002,0001,114,0002,117,632stderr
12Jul 6, 2026 06:324,11142,063,76832,978,0001,145,0002,117,632stderr