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 listNov 14, 2024 22:39zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 16, 2026 03:20Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2026 03:48041,443,93831,388,0001,037,0002,121,728expected "78687307459341383 ", got "78687525113182008 "stderr
2Oct 16, 2026 03:48016,831,3637,803,000020,480No answer to stdout. Died or killed?
3Nov 14, 2024 22:393,90254,611,05930,364,0002,024,0002,273,280
4Nov 14, 2024 22:393,91159,152,43932,458,00002,359,296
5Nov 14, 2024 22:393,91358,016,77231,465,0001,015,0002,535,424
6Nov 14, 2024 22:393,91551,853,28631,480,0001,015,0002,457,600
7Nov 14, 2024 22:393,92060,463,26131,517,0001,016,0002,535,424
8Nov 14, 2024 22:393,92359,063,19332,565,00002,277,376
9Nov 14, 2024 22:393,92461,138,18231,550,0001,017,0002,535,424
10Nov 14, 2024 22:393,92558,413,96932,575,00002,367,488
11Nov 14, 2024 22:393,92756,123,25632,593,00002,535,424
12Nov 14, 2024 22:393,95861,182,25832,850,00002,277,376
13Nov 14, 2024 22:393,95957,795,06731,865,000995,0002,371,584
14Nov 14, 2024 22:394,00754,044,81431,246,0002,015,0002,457,600