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:36wnwnError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 7, 2026 03:47Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 03:47038,209,01829,339,0001,031,0002,113,536expected "45498999740198766 ", got "45379380027520534 "
2Jul 7, 2026 03:47040,062,31131,542,00002,113,536expected "45500770616960046 ", got "45381756982671062 "
3Jul 7, 2026 03:47039,615,04931,308,00002,113,536expected "45496893457076132 ", got "45377322800908729 "
4Jul 7, 2026 03:373,27735,115,34326,193,0001,012,0002,113,536
5Jul 7, 2026 03:373,28335,358,20426,223,0001,032,0002,113,536
6Jul 7, 2026 03:373,28935,339,42226,277,0001,025,0002,113,536
7Jul 7, 2026 03:373,29035,162,80926,308,0001,007,0002,113,536
8Jul 7, 2026 03:373,29135,746,95126,287,0001,029,0002,113,536
9Jul 7, 2026 03:373,30135,190,11226,356,0001,043,0002,113,536
10Jul 7, 2026 03:373,30235,465,60726,351,0001,062,0002,113,536
11Jul 7, 2026 03:373,40436,292,60127,242,0001,018,0002,113,536
12Jul 7, 2026 03:373,45038,254,20427,632,0001,007,0002,113,536