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 15, 2023 14:13matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 15, 2023 14:1700000Error: expected "53689193354002955 ", got "53689193354000395 "
2Dec 15, 2023 14:176,76884,739,70854,172,0002,006,0002,260,992
3Dec 15, 2023 14:176,78480,357,93455,304,0001,005,0002,396,160
4Dec 15, 2023 14:176,80780,922,80854,478,0002,017,0002,260,992
5Dec 15, 2023 14:176,85881,308,93554,924,0001,997,0002,260,992
6Dec 15, 2023 14:176,87680,088,72955,067,0002,002,0002,400,256
7Dec 15, 2023 14:176,90182,416,17455,273,0002,009,0002,260,992
8Dec 15, 2023 14:176,91882,594,04655,405,0002,014,0002,400,256
9Dec 15, 2023 14:176,93380,229,12656,536,0001,009,0002,396,160
10Dec 15, 2023 14:177,033114,193,78158,372,69702,285,568
11Dec 16, 2023 09:557,039122,650,03058,420,28902,281,472
12Dec 15, 2023 14:137,055121,873,73658,559,02902,289,664
13Dec 15, 2023 14:177,05586,783,30258,559,00002,260,992
14Dec 16, 2023 09:557,115128,705,33459,057,35102,273,280
15Dec 16, 2023 09:517,175129,333,14559,553,88302,289,664
16Dec 15, 2023 14:137,195139,085,97059,719,38802,260,992
17Dec 16, 2023 09:517,198114,528,89259,741,75902,285,568
18Dec 16, 2023 09:517,215120,187,34659,881,90902,289,664
19Dec 16, 2023 09:557,218124,178,22059,913,25502,273,280
20Dec 15, 2023 14:177,310115,631,99360,675,50302,281,472
21Dec 15, 2023 14:137,319271,932,44560,747,28402,256,896
22Dec 15, 2023 14:177,351123,496,38861,014,24802,277,376