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 28, 2024 00:26Matt 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 28, 2024 00:2600000Error: expected "53689829280777248 ", got "53689857757406765 "
2May 28, 2024 00:2700000Error: expected "53686705680173696 ", got "53686745087401131 "
3May 28, 2024 00:2800000Error: expected "53685981298326545 ", got "53686073224697330 "
4May 28, 2024 00:3100000Error: expected "53690295230229275 ", got "53690348677333324 "
5May 28, 2024 00:296,160119,655,39451,124,14302,199,552
6May 28, 2024 00:326,289121,503,32352,197,43402,195,456
7May 28, 2024 00:326,289129,881,37652,197,50802,215,936
8May 28, 2024 00:326,293108,297,29452,230,69302,297,856
9May 28, 2024 00:306,297114,252,50352,266,77602,211,840
10May 28, 2024 00:306,323109,273,47052,481,73102,289,664
11May 28, 2024 00:306,336119,750,12952,585,98502,203,648
12May 28, 2024 00:296,394131,333,67553,072,87502,191,360
13May 28, 2024 00:296,398115,204,77053,100,92902,228,224