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 listOct 14, 2024 16:48Joad NacerJoad NacerError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 7, 2026 21:59Adam Folwarczny10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 22:05058,486,32249,385,0001,016,0002,121,728expected "27617841214539459 ", got "42770194352304198 "stderr
2Jul 7, 2026 22:05059,263,28649,646,0001,016,0002,121,728expected "27617841214539459 ", got "42770194352304198 "stderr
3Jul 7, 2026 22:05057,922,03848,858,0001,014,0002,121,728expected "27617841214539459 ", got "42770194352304198 "stderr
4Oct 14, 2024 16:484,31859,036,20633,849,0001,991,0002,273,280
5Oct 14, 2024 16:484,31858,706,31833,850,0001,991,0002,297,856
6Oct 14, 2024 16:484,33757,563,16935,000,0001,000,0002,306,048
7Oct 14, 2024 16:484,36962,751,00934,247,0002,014,0002,306,048
8Oct 14, 2024 16:484,37163,532,71034,261,0002,015,0002,289,664
9Oct 14, 2024 16:484,61657,318,96936,294,0002,016,0002,383,872