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 04:17Matt 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 04:1700000Error: Exit with code 1: Segmentation fault at address: 302022672stderr
2May 28, 2024 04:2700000Error: expected "53685230882174046 ", got "53685248658621981 "
3May 28, 2024 04:2600000Error: expected "53681572215968050 ", got "53681619513527165 "
4May 28, 2024 04:2400000Error: expected "53689560777278529 ", got "53689596099349196 "
5May 28, 2024 04:2200000Error: Exit with code 1: Segmentation fault at address: 1082163328stderr
6May 28, 2024 04:2100000Error: expected "53681441118952901 ", got "53681485665244881 "
7May 28, 2024 04:2000000Error: Exit with code 1: Segmentation fault at address: 335609984stderr
8May 28, 2024 04:1900000Error: expected "53685261518154277 ", got "53685330892382390 "
9May 28, 2024 04:1800000Error: expected "53690417486933021 ", got "53690431005364108 "
10May 28, 2024 04:256,215129,256,93151,582,21702,183,168
11May 28, 2024 04:236,224123,031,24451,661,25102,187,264
12May 28, 2024 04:256,295109,622,73352,252,42602,179,072
13May 28, 2024 04:236,321115,874,41552,460,77602,215,936
14May 28, 2024 04:286,344110,064,35352,656,75702,179,072
15May 28, 2024 04:286,346113,213,02852,670,85502,203,648
16May 28, 2024 04:286,366122,367,00352,837,97902,285,568
17May 28, 2024 04:256,391109,311,20253,042,30002,199,552
18May 28, 2024 04:236,425109,848,84053,329,68902,215,936