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 27, 2024 17:08 | 0 | 0 | 0 | 0 | 0 | Error: expected "53682499287001471 ", got "53682506922610675 " | |
| 2 | May 27, 2024 16:59 | 0 | 0 | 0 | 0 | 0 | Error: expected "53682422336471547 ", got "53682438934986302 " | |
| 3 | May 27, 2024 17:00 | 0 | 0 | 0 | 0 | 0 | Error: expected "53690402706790285 ", got "53690408317911623 " | |
| 4 | May 27, 2024 17:01 | 0 | 0 | 0 | 0 | 0 | Error: expected "53690096104225433 ", got "53690177650358396 " | |
| 5 | May 27, 2024 17:03 | 0 | 0 | 0 | 0 | 0 | Error: expected "53690527720196349 ", got "53690609266329312 " | |
| 6 | May 27, 2024 17:04 | 0 | 0 | 0 | 0 | 0 | Error: expected "53682848329118299 ", got "53682873310332793 " | |
| 7 | May 27, 2024 17:05 | 0 | 0 | 0 | 0 | 0 | Error: expected "53687966008446692 ", got "53687968867558899 " | |
| 8 | May 27, 2024 17:06 | 0 | 0 | 0 | 0 | 0 | Error: Exit with code 1: Segmentation fault at address: 2416181376 | stderr |
| 9 | May 27, 2024 17:07 | 0 | 0 | 0 | 0 | 0 | Error: expected "53682524012325201 ", got "53682545855691370 " | |
| 10 | May 27, 2024 16:58 | 0 | 0 | 0 | 0 | 0 | Error: expected "53685611512026284 ", got "53685633369878713 " | |
| 11 | May 27, 2024 17:09 | 0 | 0 | 0 | 0 | 0 | Error: expected "53683636675208434 ", got "53683679502477070 " | |
| 12 | May 27, 2024 17:10 | 0 | 0 | 0 | 0 | 0 | Error: expected "53691530738558540 ", got "53691537142394337 " | |
| 13 | May 27, 2024 17:11 | 0 | 0 | 0 | 0 | 0 | Error: expected "53688572503697110 ", got "53688592268641737 " | |
| 14 | May 27, 2024 17:12 | 0 | 0 | 0 | 0 | 0 | Error: Exit with code 1: Segmentation fault at address: 302022672 | stderr |
| 15 | May 27, 2024 17:13 | 0 | 0 | 0 | 0 | 0 | Error: expected "53692069760076165 ", got "53692110875371490 " | |
| 16 | May 27, 2024 17:14 | 0 | 0 | 0 | 0 | 0 | Error: expected "53690067422737309 ", got "53690120869841358 " | |
| 17 | May 27, 2024 17:15 | 0 | 0 | 0 | 0 | 0 | Error: expected "53689487958467468 ", got "53689519838706590 " | |
| 18 | May 27, 2024 17:16 | 0 | 0 | 0 | 0 | 0 | Error: expected "53692149859769887 ", got "53692156263605684 " | |
| 19 | May 27, 2024 16:57 | 0 | 0 | 0 | 0 | 0 | Error: expected "53689554693457728 ", got "53689636239590691 " | |
| 20 | May 27, 2024 16:47 | 0 | 0 | 0 | 0 | 0 | Error: expected "53689696191341535 ", got "53689707321722218 " | |
| 21 | May 27, 2024 16:48 | 0 | 0 | 0 | 0 | 0 | Error: Exit with code 1: Segmentation fault at address: 1082163328 | stderr |
| 22 | May 27, 2024 16:49 | 0 | 0 | 0 | 0 | 0 | Error: expected "53689645024874991 ", got "53689680346945658 " | |
| 23 | May 27, 2024 16:50 | 0 | 0 | 0 | 0 | 0 | Error: expected "53685134656275194 ", got "53685200879709873 " | |
| 24 | May 27, 2024 16:51 | 0 | 0 | 0 | 0 | 0 | Error: expected "53687939918289755 ", got "53687972366637724 " | |
| 25 | May 27, 2024 16:53 | 0 | 0 | 0 | 0 | 0 | Error: Exit with code 1: Segmentation fault at address: 1082163328 | stderr |
| 26 | May 27, 2024 16:55 | 0 | 0 | 0 | 0 | 0 | Error: expected "53682071430938998 ", got "53682123682155946 " | |
| 27 | May 27, 2024 16:56 | 0 | 0 | 0 | 0 | 0 | Error: expected "53690555807534922 ", got "53690654369327562 " | |
| 28 | May 27, 2024 16:54 | 6,160 | 114,131,160 | 51,124,069 | 0 | 2,191,360 | ||
| 29 | May 27, 2024 17:17 | 6,205 | 120,907,518 | 51,502,920 | 0 | 2,195,456 | ||
| 30 | May 27, 2024 17:17 | 6,240 | 141,526,662 | 51,788,135 | 0 | 2,203,648 | ||
| 31 | May 27, 2024 16:52 | 6,286 | 124,526,829 | 52,173,540 | 0 | 2,215,936 | ||
| 32 | May 27, 2024 17:17 | 6,315 | 123,899,795 | 52,410,869 | 0 | 2,203,648 | ||
| 33 | May 27, 2024 16:52 | 6,330 | 112,668,337 | 52,538,983 | 0 | 2,220,032 | ||
| 34 | May 27, 2024 16:52 | 6,370 | 135,019,208 | 52,868,007 | 0 | 2,199,552 | ||
| 35 | May 27, 2024 16:54 | 6,398 | 113,958,623 | 53,102,340 | 0 | 2,301,952 | ||
| 36 | May 27, 2024 16:54 | 6,412 | 129,876,408 | 53,216,855 | 0 | 2,211,840 |