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 27, 2024 19:43Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 19:5200000Error: expected "53690008753388751 ", got "53690056978129206 "
2May 27, 2024 19:5100000Error: expected "53689246602464047 ", got "53689336695586248 "
3May 27, 2024 19:4900000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
4May 27, 2024 19:4800000Error: expected "53691785962417730 ", got "53691827077713055 "
5May 27, 2024 19:4700000Error: expected "53690371310424833 ", got "53690424757528882 "
6May 27, 2024 19:4500000Error: Exit with code 1: Segmentation fault at address: 302022672stderr
7May 27, 2024 19:4400000Error: expected "53679670816334281 ", got "53679725618391252 "
8May 27, 2024 19:4300000Error: expected "53680834736822210 ", got "53680851335336965 "
9May 27, 2024 19:506,168119,319,07351,192,96902,199,552
10May 27, 2024 19:506,191115,804,44251,386,47802,203,648
11May 27, 2024 19:546,193119,808,34851,404,70802,203,648
12May 27, 2024 19:536,260120,648,11651,954,00002,195,456
13May 27, 2024 19:546,270117,507,65952,036,96402,187,264
14May 27, 2024 19:546,302110,344,75752,309,66502,187,264
15May 27, 2024 19:506,315122,520,26452,416,59402,187,264
16May 27, 2024 19:536,359110,152,19552,776,22402,183,168
17May 27, 2024 19:536,382110,272,52552,974,33102,215,936