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 18:51Matt 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 18:5100000Error: expected "53687822548916019 ", got "53687854997263988 "
2May 27, 2024 18:5300000Error: Exit with code 1: Segmentation fault at address: 2416181376stderr
3May 27, 2024 18:5500000Error: expected "53689716926579878 ", got "53689809570542102 "
4May 27, 2024 18:5600000Error: expected "53688512415456924 ", got "53688518026578262 "
5May 27, 2024 18:5800000Error: expected "53691593159485417 ", got "53691599563321214 "
6May 27, 2024 18:5900000Error: expected "53682554003037397 ", got "53682598549329377 "
7May 27, 2024 19:0000000Error: expected "53685196113114937 ", got "53685208003409683 "
8May 27, 2024 18:546,146122,252,40151,011,47402,195,456
9May 27, 2024 18:526,162138,828,04451,147,96802,195,456
10May 27, 2024 19:016,177119,499,79651,268,66502,199,552
11May 27, 2024 18:546,183116,431,37151,317,04902,224,128
12May 27, 2024 19:016,222116,404,86851,645,85502,199,552
13May 27, 2024 18:546,283126,933,69952,151,94302,195,456
14May 27, 2024 18:526,309122,364,03152,363,49502,187,264
15May 27, 2024 19:016,334126,244,93552,569,33702,224,128
16May 27, 2024 18:526,363116,309,26252,810,99402,211,840