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 listDec 5, 2022 15:26Yuriy 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
1Dec 5, 2022 15:2700000Error: expected "53685356998923909 ", got "53685354438923909 "
2Dec 5, 2022 15:268,31791,568,03265,031,0004,001,0002,387,968
3Dec 5, 2022 15:268,32097,936,24068,058,0001,000,0002,342,912
4Dec 5, 2022 15:268,33991,498,66767,205,0002,006,0002,355,200
5Dec 5, 2022 15:268,37697,566,98865,491,0004,030,0002,519,040
6Dec 5, 2022 15:268,38195,474,56966,541,0003,024,0002,527,232
7Dec 5, 2022 15:268,38998,233,89366,602,0003,027,0002,326,528
8Dec 5, 2022 15:268,40995,268,65667,803,0001,994,0002,260,992
9Dec 5, 2022 15:268,45692,677,90466,177,0004,010,0002,408,448
10Dec 5, 2022 15:268,55693,358,56465,016,0006,001,0002,433,024
11Dec 5, 2022 15:268,567137,580,14671,102,50802,306,048
12Dec 5, 2022 15:268,718130,639,16172,357,98502,179,072
13Dec 5, 2022 15:268,786145,658,95072,924,00102,203,648