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

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

Challenge History
DateChallengerCostTypeStatus
Jul 7, 2026 03:49Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 03:50038,621,02130,775,00002,113,536expected "45508172230574943 ", got "45388952450855425 "
2Jul 7, 2026 03:50040,369,13631,799,00002,113,536expected "45504429423024906 ", got "45385347729625038 "
3Jul 7, 2026 03:50038,174,74730,383,00002,113,536expected "45494330950246787 ", got "45374519909826214 "
4Jul 7, 2026 03:383,29035,137,27626,308,0001,007,0002,113,536
5Jul 7, 2026 03:383,32037,077,23426,553,0001,003,0002,113,536
6Jul 7, 2026 03:383,32435,599,87026,574,0001,016,0002,113,536
7Jul 7, 2026 03:383,42736,889,98027,432,0001,016,0002,113,536
8Jul 7, 2026 03:383,45337,235,38727,649,0001,019,0002,113,536
9Jul 7, 2026 03:383,45537,183,00327,637,0001,040,0002,113,536
10Jul 7, 2026 03:383,45737,196,68527,692,0001,003,0002,113,536
11Jul 7, 2026 03:383,45837,225,03727,668,0001,039,0002,113,536
12Jul 7, 2026 03:383,46837,288,73427,753,0001,039,0002,113,536