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 listMay 11, 2025 19:37vahookvahookError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 11, 2025 19:3300000Error: expected "53687751609912817 ", got "53687736955469315 "stderr
2May 21, 2025 13:1100000Error: expected "53682360819012920 ", got "53682360551132796 "stderr
3May 21, 2025 13:1300000Error: expected "53685550823764761 ", got "53685550555884637 "stderr
4May 21, 2025 13:1600000Error: expected "53686760634661421 ", got "53686757456411267 "stderr
5May 11, 2025 19:374,71465,098,45537,123,0002,006,0002,437,120
6May 11, 2025 19:374,71761,158,44836,142,0003,011,0002,273,280
7May 11, 2025 19:374,73057,632,81135,234,0004,026,0002,273,280
8May 11, 2025 19:374,73861,936,40336,299,0003,024,0002,273,280
9May 11, 2025 19:374,74661,544,69134,345,0005,050,0002,433,024
10May 11, 2025 19:374,79765,852,61335,836,0003,981,0002,420,736
11May 11, 2025 19:374,79970,373,75134,854,0004,979,0002,437,120
12May 11, 2025 19:374,81761,985,35536,980,0002,998,0002,437,120
13May 11, 2025 19:374,84865,494,28038,230,0002,012,0002,273,280
14May 11, 2025 19:374,84961,110,18437,228,0003,018,0002,273,280
15May 11, 2025 19:374,86766,845,68637,366,0003,029,0002,437,120
16May 11, 2025 19:374,92073,057,29437,845,0002,987,0002,433,024