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 | Jun 5, 2024 12:47 | 0 | 0 | 0 | 0 | 0 | Error: expected "53690324504826411 ", got "53690390980611261 " | |
| 2 | Jun 5, 2024 12:39 | 0 | 0 | 0 | 0 | 0 | Error: expected "53681876422157631 ", got "53681959829111891 " | |
| 3 | Jun 5, 2024 12:40 | 0 | 0 | 0 | 0 | 0 | Error: expected "53689479743225495 ", got "53689490873606178 " | |
| 4 | Jun 5, 2024 12:40 | 0 | 0 | 0 | 0 | 0 | Error: Exit with code 1: Segmentation fault at address: 378164751872 | stderr |
| 5 | Jun 5, 2024 12:41 | 0 | 0 | 0 | 0 | 0 | Error: Exit with code 1: Segmentation fault at address: 378164751872 | stderr |
| 6 | Jun 5, 2024 12:42 | 0 | 0 | 0 | 0 | 0 | Error: expected "53683528867502414 ", got "53683529775280216 " | |
| 7 | Jun 5, 2024 12:43 | 0 | 0 | 0 | 0 | 0 | Error: expected "53686737534297141 ", got "53686753649100383 " | |
| 8 | Jun 5, 2024 12:43 | 0 | 0 | 0 | 0 | 0 | Error: Exit with code 1: Segmentation fault at address: 380921491968 | stderr |
| 9 | Jun 5, 2024 12:44 | 0 | 0 | 0 | 0 | 0 | Error: expected "53691538305111121 ", got "53691558091490251 " | |
| 10 | Jun 5, 2024 12:44 | 0 | 0 | 0 | 0 | 0 | Error: expected "53689470066102105 ", got "53689444466102105 " | |
| 11 | Jun 5, 2024 12:46 | 0 | 0 | 0 | 0 | 0 | Error: expected "53689162416629347 ", got "53689168027750685 " | |
| 12 | Jun 5, 2024 12:46 | 0 | 0 | 0 | 0 | 0 | Error: Exit with code 1: Segmentation fault at address: 378349335040 | stderr |
| 13 | Jun 5, 2024 12:39 | 0 | 0 | 0 | 0 | 0 | Error: expected "53687679810381464 ", got "53687691700676210 " | |
| 14 | Jun 5, 2024 12:48 | 0 | 0 | 0 | 0 | 0 | Error: expected "53690007041257615 ", got "53690020559688702 " | |
| 15 | Jun 5, 2024 12:48 | 0 | 0 | 0 | 0 | 0 | Error: expected "53689298789317321 ", got "53689490155417492 " | |
| 16 | Jun 5, 2024 12:49 | 0 | 0 | 0 | 0 | 0 | Error: expected "53681546028145637 ", got "53681934566550961 " | |
| 17 | Jun 5, 2024 12:49 | 0 | 0 | 0 | 0 | 0 | Error: expected "53683598056424547 ", got "53683595496424547 " | |
| 18 | Jun 5, 2024 13:05 | 0 | 0 | 0 | 0 | 0 | Error: expected "53690136780753924 ", got "53690316239055868 " | |
| 19 | Jun 5, 2024 13:05 | 0 | 0 | 0 | 0 | 0 | Error: Exit with code 1: Segmentation fault at address: 401602601472 | stderr |
| 20 | Jun 5, 2024 13:06 | 0 | 0 | 0 | 0 | 0 | Error: expected "53690225553213818 ", got "53690321995452320 " | |
| 21 | Jun 5, 2024 13:06 | 0 | 0 | 0 | 0 | 0 | Error: expected "53686117814268983 ", got "53686165111828098 " | |
| 22 | Jun 5, 2024 13:07 | 0 | 0 | 0 | 0 | 0 | Error: expected "53680962815453000 ", got "53681003885812883 " | |
| 23 | Jun 5, 2024 13:08 | 0 | 0 | 0 | 0 | 0 | Error: expected "53681627567678320 ", got "53681682006863485 " | |
| 24 | Jun 5, 2024 13:08 | 0 | 0 | 0 | 0 | 0 | Error: Exit with code 1: Segmentation fault at address: 378349334976 | stderr |
| 25 | Jun 5, 2024 12:38 | 0 | 0 | 0 | 0 | 0 | Error: expected "53686086237583048 ", got "53686108095435477 " | |
| 26 | Jun 5, 2024 12:37 | 0 | 0 | 0 | 0 | 0 | Error: expected "53689426971619248 ", got "53689448568462189 " | |
| 27 | Jun 5, 2024 12:37 | 0 | 0 | 0 | 0 | 0 | Error: expected "53682312772854858 ", got "53682328699978922 " | |
| 28 | Jun 5, 2024 12:36 | 0 | 0 | 0 | 0 | 0 | Error: expected "53683624079446101 ", got "53683678518631266 " | |
| 29 | Jun 5, 2024 12:36 | 0 | 0 | 0 | 0 | 0 | Error: expected "53688083636335327 ", got "53688308684620520 " | |
| 30 | Jun 5, 2024 12:35 | 0 | 0 | 0 | 0 | 0 | Error: expected "53689275267484595 ", got "53689536936187940 " | |
| 31 | Jun 5, 2024 12:35 | 0 | 0 | 0 | 0 | 0 | Error: expected "53691634053558563 ", got "53691700529343413 " | |
| 32 | Jun 5, 2024 12:34 | 0 | 0 | 0 | 0 | 0 | Error: expected "53692007274770712 ", got "53692079470531444 " | |
| 33 | Jun 5, 2024 12:50 | 5,450 | 98,608,585 | 45,237,971 | 0 | 2,297,856 | ||
| 34 | Jun 5, 2024 12:50 | 5,454 | 100,425,680 | 45,267,405 | 0 | 2,301,952 | ||
| 35 | Jun 5, 2024 12:41 | 5,469 | 99,558,568 | 45,394,365 | 0 | 2,289,664 | ||
| 36 | Jun 5, 2024 12:50 | 5,495 | 110,719,564 | 45,606,281 | 0 | 2,269,184 | ||
| 37 | Jun 5, 2024 12:45 | 5,510 | 110,867,933 | 45,728,860 | 0 | 2,281,472 | ||
| 38 | Jun 5, 2024 13:03 | 5,512 | 112,792,663 | 45,751,929 | 0 | 2,306,048 | ||
| 39 | Jun 5, 2024 13:09 | 5,517 | 110,169,351 | 45,788,023 | 0 | 2,285,568 | ||
| 40 | Jun 5, 2024 13:03 | 5,540 | 112,110,996 | 45,983,149 | 0 | 2,289,664 | ||
| 41 | Jun 5, 2024 12:45 | 5,543 | 118,862,382 | 46,005,011 | 0 | 2,289,664 | ||
| 42 | Jun 5, 2024 12:41 | 5,544 | 123,900,538 | 46,012,029 | 0 | 2,285,568 | ||
| 43 | Jun 5, 2024 12:45 | 5,549 | 97,309,488 | 46,055,787 | 0 | 2,281,472 | ||
| 44 | Jun 5, 2024 12:41 | 5,560 | 122,256,005 | 46,151,463 | 0 | 2,297,856 | ||
| 45 | Jun 5, 2024 13:09 | 5,568 | 115,856,721 | 46,217,501 | 0 | 2,273,280 | ||
| 46 | Jun 5, 2024 13:09 | 5,596 | 105,346,082 | 46,447,299 | 0 | 2,183,168 | ||
| 47 | Jun 5, 2024 13:03 | 5,597 | 96,665,554 | 46,455,494 | 0 | 2,301,952 |