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 listAug 28, 2023 20:55Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 28, 2023 20:5500000Error: expected "53690304028030237 ", got "709589670943261 "stderr
2Aug 28, 2023 20:5600000Error: expected "53681496836528651 ", got "160944179807499 "stderr
3Dec 6, 2023 02:2100000Error: expected "53689196211868253 ", got "53689145011868253 "stderr
4Dec 6, 2023 02:2100000Error: expected "53680532498270033 ", got "53680529938270033 "stderr
5Dec 6, 2023 02:217,32786,018,70858,784,0002,027,0002,400,256
6Dec 6, 2023 02:217,390118,165,35061,340,36402,215,936
7Dec 6, 2023 02:217,39484,597,25559,360,0002,012,0002,478,080
8Dec 6, 2023 02:217,398121,959,28761,400,53802,211,840
9Dec 6, 2023 02:217,39988,036,69259,395,0002,013,0002,318,336
10Dec 6, 2023 02:217,454135,623,86861,871,39802,265,088
11Dec 6, 2023 02:217,46089,319,69957,924,0003,994,0002,342,912
12Dec 6, 2023 02:217,46894,717,32857,988,0003,999,0002,473,984
13Dec 6, 2023 02:217,48087,365,02260,081,0002,002,0002,478,080
14Dec 6, 2023 02:217,50484,795,79659,274,0003,013,0002,277,376
15Dec 6, 2023 02:217,51686,678,76559,363,0003,018,0002,519,040
16Dec 6, 2023 02:217,57887,007,13358,906,0003,993,0002,473,984