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 21, 2021 17:15Yuriy 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 21, 2021 17:1500000Error: expected "53682710031942468 ", got "53682710031916868 "
2Aug 21, 2021 17:1500000Error: expected "53681227798588088 ", got "53681227798332188 "
3Aug 21, 2021 17:2300000Error: expected "53680800053636795 ", got "53680800053355295 "
4Aug 21, 2021 17:2400000Error: expected "53687510107670953 ", got "53687510082080953 "
5Aug 21, 2021 17:2400000Error: expected "53691545038482824 ", got "53691545038201324 "
6Aug 21, 2021 17:2400000Error: expected "53688188826933988 ", got "53688188826678088 "
7Aug 21, 2021 17:2500000Error: expected "53692821030333082 ", got "53692820774177182 "
8Sep 7, 2021 15:4100000Error: expected "53686629961871965 ", got "53686629961846365 "
9Sep 7, 2021 15:4200000Error: expected "53687933670812725 ", got "53687931111812725 "
10Sep 7, 2021 15:4200000Error: expected "53686483358036817 ", got "53686483355452217 "
11Sep 7, 2021 15:4200000Error: expected "53692106234826449 ", got "53692106234800849 "