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 02:44Matt 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 02:4400000Error: expected "53679986261914897 ", got "53680063945065835 "
2May 28, 2024 02:5500000Error: expected "53691834334513935 ", got "53691875449809260 "
3May 28, 2024 02:5400000Error: expected "53685136380445831 ", got "53685158238298260 "
4May 28, 2024 02:5100000Error: expected "53681499164148897 ", got "53681546461708012 "
5May 28, 2024 02:5000000Error: Exit with code 1: Segmentation fault at address: 335609984stderr
6May 28, 2024 02:4900000Error: expected "53683006577866662 ", got "53683041899937329 "
7May 28, 2024 02:4800000Error: expected "53692375778387135 ", got "53692443767057204 "
8May 28, 2024 02:4600000Error: expected "53690869834049844 ", got "53690881724344590 "
9May 28, 2024 02:4500000Error: expected "53689889141899695 ", got "53689937366640150 "
10May 28, 2024 02:566,178109,586,33851,276,29902,207,744
11May 28, 2024 02:526,192131,872,71551,390,33602,191,360
12May 28, 2024 02:526,223128,013,98151,648,16202,306,048
13May 28, 2024 02:566,240121,431,04951,795,13302,199,552
14May 28, 2024 02:566,271121,837,66152,051,41402,199,552
15May 28, 2024 02:526,276120,277,65352,087,09802,215,936
16May 28, 2024 02:476,319117,716,54252,450,71302,199,552
17May 28, 2024 02:476,324123,768,86752,488,06302,203,648
18May 28, 2024 02:476,400132,662,62753,119,15602,203,648