Parse integers 
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.
Source Code
Source code access is restricted. Log in to request access.
Challenge History
No challenges yet.
Run Statistics
| # | Date | Score | Wall Time | CPU User | CPU System | Memory | Error | |
|---|---|---|---|---|---|---|---|---|
| 1 | May 28, 2024 01:12 | 0 | 0 | 0 | 0 | 0 | Error: expected "53689934702642671 ", got "53689955033039141 " | |
| 2 | May 28, 2024 01:04 | 0 | 0 | 0 | 0 | 0 | Error: expected "53690129211402413 ", got "53690176686299197 " | |
| 3 | May 28, 2024 01:05 | 0 | 0 | 0 | 0 | 0 | Error: Exit with code 1: Segmentation fault at address: 17833988 | stderr |
| 4 | May 28, 2024 01:06 | 0 | 0 | 0 | 0 | 0 | Error: expected "53691127916652228 ", got "53691139047032911 " | |
| 5 | May 28, 2024 01:07 | 0 | 0 | 0 | 0 | 0 | Error: Exit with code 1: Segmentation fault at address: 1208025152 | stderr |
| 6 | May 28, 2024 01:08 | 0 | 0 | 0 | 0 | 0 | Error: expected "53689789883126187 ", got "53689825205196854 " | |
| 7 | May 28, 2024 01:09 | 0 | 0 | 0 | 0 | 0 | Error: Exit with code 1: Segmentation fault at address: 570491008 | stderr |
| 8 | May 28, 2024 01:10 | 0 | 0 | 0 | 0 | 0 | Error: expected "53689674917880078 ", got "53689756464013041 " | |
| 9 | May 28, 2024 01:11 | 0 | 0 | 0 | 0 | 0 | Error: expected "53687931444829943 ", got "53687956257568708 " | |
| 10 | May 28, 2024 01:03 | 0 | 0 | 0 | 0 | 0 | Error: Exit with code 1: Segmentation fault at address: 335609984 | stderr |
| 11 | May 28, 2024 01:13 | 0 | 0 | 0 | 0 | 0 | Error: expected "53692604459014150 ", got "53692610070135488 " | |
| 12 | May 28, 2024 01:15 | 0 | 0 | 0 | 0 | 0 | Error: expected "53687217000884911 ", got "53687217908662713 " | |
| 13 | May 28, 2024 01:16 | 0 | 0 | 0 | 0 | 0 | Error: expected "53683737391623014 ", got "53683762372837508 " | |
| 14 | May 28, 2024 01:17 | 0 | 0 | 0 | 0 | 0 | Error: Exit with code 1: Segmentation fault at address: 335609984 | stderr |
| 15 | May 28, 2024 01:18 | 0 | 0 | 0 | 0 | 0 | Error: Exit with code 1: Segmentation fault at address: 167804992 | stderr |
| 16 | May 28, 2024 01:19 | 0 | 0 | 0 | 0 | 0 | Error: expected "53687622945743111 ", got "53687680892450530 " | |
| 17 | May 28, 2024 01:20 | 0 | 0 | 0 | 0 | 0 | Error: expected "53692500800125515 ", got "53692541915420840 " | |
| 18 | May 28, 2024 01:21 | 0 | 0 | 0 | 0 | 0 | Error: expected "53684144682885251 ", got "53684145590663053 " | |
| 19 | May 28, 2024 01:02 | 0 | 0 | 0 | 0 | 0 | Error: expected "53684026087132432 ", got "53684061409203099 " | |
| 20 | May 28, 2024 00:53 | 0 | 0 | 0 | 0 | 0 | Error: expected "53682953907000817 ", got "53683037313955077 " | |
| 21 | May 28, 2024 00:54 | 0 | 0 | 0 | 0 | 0 | Error: expected "53691215581044953 ", got "53691337777092079 " | |
| 22 | May 28, 2024 00:55 | 0 | 0 | 0 | 0 | 0 | Error: expected "53683032923159069 ", got "53683095469595999 " | |
| 23 | May 28, 2024 00:57 | 0 | 0 | 0 | 0 | 0 | Error: Exit with code 1: Segmentation fault at address: 570490944 | stderr |
| 24 | May 28, 2024 00:59 | 0 | 0 | 0 | 0 | 0 | Error: expected "53692562008025208 ", got "53692622326534396 " | |
| 25 | May 28, 2024 01:00 | 0 | 0 | 0 | 0 | 0 | Error: expected "53687982288791291 ", got "53688051663019404 " | |
| 26 | May 28, 2024 01:01 | 0 | 0 | 0 | 0 | 0 | Error: expected "53693085833996529 ", got "53693097724291275 " | |
| 27 | May 28, 2024 00:56 | 6,149 | 114,745,717 | 51,038,802 | 0 | 2,195,456 | ||
| 28 | May 28, 2024 00:52 | 6,199 | 122,329,169 | 51,454,145 | 0 | 2,199,552 | ||
| 29 | May 28, 2024 01:22 | 6,289 | 127,855,784 | 52,197,149 | 0 | 2,215,936 | ||
| 30 | May 28, 2024 01:22 | 6,324 | 119,153,329 | 52,491,624 | 0 | 2,199,552 | ||
| 31 | May 28, 2024 00:56 | 6,324 | 108,222,784 | 52,485,425 | 0 | 2,195,456 | ||
| 32 | May 28, 2024 00:56 | 6,325 | 104,496,745 | 52,501,312 | 0 | 2,191,360 | ||
| 33 | May 28, 2024 00:52 | 6,342 | 110,226,511 | 52,635,387 | 0 | 2,207,744 | ||
| 34 | May 28, 2024 01:22 | 6,358 | 123,688,596 | 52,768,316 | 0 | 2,199,552 | ||
| 35 | May 28, 2024 00:52 | 6,370 | 119,828,757 | 52,868,371 | 0 | 2,199,552 |