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 listApr 22, 2026 11:52wnwnError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 6, 2026 17:35Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 6, 2026 17:35040,351,02130,905,0001,003,0002,113,536expected "74600294196621100 ", got "74594492678217367 "
2Jul 6, 2026 17:35037,483,61528,056,0001,007,0002,113,536expected "74600294196621100 ", got "74924964084651018 "
3Jul 6, 2026 17:35039,514,96530,284,0001,028,0002,113,536expected "74600294196621100 ", got "74594471258287387 "
4Apr 22, 2026 11:523,60646,381,29028,935,000997,0002,486,272
5Apr 22, 2026 11:523,61447,730,73228,002,0002,000,0002,473,984
6Apr 22, 2026 11:523,62642,462,62329,095,0001,003,0002,478,080
7Apr 22, 2026 11:523,62946,165,96528,117,0002,008,0002,490,368
8Apr 22, 2026 11:523,64150,860,13429,219,0001,007,0002,482,176
9Apr 22, 2026 11:523,66548,405,52729,409,0001,014,0002,482,176
10Apr 22, 2026 11:523,70744,063,59628,784,0001,985,0002,478,080
11Apr 22, 2026 11:523,72349,705,78428,910,0001,993,0002,482,176
12Apr 22, 2026 11:523,78946,398,73930,439,0001,014,0002,486,272