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 7, 2026 03:35wnwnError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 7, 2026 03:47Victor Mercklé31.70CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 03:47038,265,03629,327,0001,016,0002,113,536expected "45500579692007219 ", got "45381287160653857 "
2Jul 7, 2026 03:47038,791,07030,961,00002,113,536expected "45503800472440796 ", got "45384489040713227 "
3Jul 7, 2026 03:47038,262,91230,230,00002,113,536expected "45498366967459215 ", got "45379116951676335 "
4Jul 7, 2026 03:363,28735,132,94826,285,0001,003,0002,113,536
5Jul 7, 2026 03:363,29235,153,07426,327,0001,002,0002,113,536
6Jul 7, 2026 03:363,30035,244,15526,394,0001,004,0002,113,536
7Jul 7, 2026 03:363,30535,265,05526,430,0001,004,0002,113,536
8Jul 7, 2026 03:363,31035,292,83626,469,0001,009,0002,113,536
9Jul 7, 2026 03:363,37136,056,02226,949,0001,035,0002,113,536
10Jul 7, 2026 03:363,40036,799,60127,180,0001,047,0002,113,536
11Jul 7, 2026 03:363,44236,610,06827,558,0001,013,0002,113,536
12Jul 7, 2026 03:363,50037,572,49228,005,0001,045,0002,113,536