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 16:22Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 7, 2026 04:55wn10.00CustomSolution Broken
Jul 7, 2026 03:43wn10.00CustomSolution Held
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 04:58041,633,56932,514,0001,009,0002,117,632expected "100000000051006282 ", got "55557717428781898 "stderr
2Jul 7, 2026 04:58041,645,62432,550,0001,035,0002,117,632expected "99999998627614484 ", got "55557716005390100 "stderr
3Jul 7, 2026 04:58041,798,78132,593,0001,102,0002,117,632expected "99999999482885221 ", got "55557716860660837 "stderr
4Jul 6, 2026 16:234,05241,630,07532,531,0001,103,0002,117,632stderr
5Jul 6, 2026 16:234,06041,723,38832,682,0001,018,0002,117,632stderr
6Jul 6, 2026 16:234,06941,834,25332,665,0001,114,0002,117,632stderr
7Jul 6, 2026 16:234,07441,882,28132,697,0001,121,0002,117,632stderr
8Jul 6, 2026 16:234,07841,870,11032,737,0001,115,0002,117,632stderr
9Jul 6, 2026 16:234,09342,001,63232,882,0001,097,0002,117,632stderr
10Jul 6, 2026 16:234,10742,076,28733,052,0001,037,0002,117,632stderr
11Jul 6, 2026 16:234,12042,204,86233,048,0001,148,0002,117,632stderr
12Jul 6, 2026 16:234,12042,255,60333,060,0001,143,0002,117,632stderr