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 listJul 14, 2022 22:45Robert BurkeRobert BurkeScore: 9,252Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 14, 2022 22:459,163138,255,61876,053,63502,289,664
2Jul 14, 2022 22:459,165128,134,60376,073,55602,281,472
3Jul 14, 2022 22:459,23398,432,74375,628,0001,008,0002,519,040
4Jul 14, 2022 22:459,236104,246,28676,660,00002,523,136
5Jul 14, 2022 22:459,24199,544,56775,691,0001,009,0002,265,088
6Jul 14, 2022 22:459,24798,521,45474,757,0001,993,0002,523,136
7Jul 14, 2022 22:459,250108,117,97275,776,000997,0002,519,040
8Jul 14, 2022 22:459,252101,604,90274,794,0001,994,0002,375,680
9Jul 14, 2022 22:459,253104,664,45274,803,0001,994,0002,363,392
10Jul 14, 2022 22:459,255101,257,24874,825,0001,995,0002,265,088
11Jul 14, 2022 22:459,257105,057,93375,819,0001,010,0002,367,488
12Jul 14, 2022 22:459,262106,221,86174,880,0001,996,0002,285,568
13Jul 14, 2022 22:459,263106,031,77474,884,0001,996,0002,260,992
14Jul 14, 2022 22:459,266128,570,07476,904,01802,281,472
15Jul 14, 2022 22:459,267100,179,67174,920,0001,997,0002,285,568