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:35Robert BurkeRobert BurkeScore: 8,273Success
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:358,23192,007,12566,308,0002,009,0002,506,752
2Jul 14, 2022 22:358,24693,902,01467,436,0001,006,0002,285,568
3Jul 14, 2022 22:358,25394,070,15168,504,00002,285,568
4Jul 14, 2022 22:358,26094,816,35467,550,0001,008,0002,285,568
5Jul 14, 2022 22:358,26294,502,35167,564,0001,008,0002,285,568
6Jul 14, 2022 22:358,26493,512,26667,581,0001,008,0002,260,992
7Jul 14, 2022 22:358,26998,858,22067,627,0001,009,0002,285,568
8Jul 14, 2022 22:358,27399,130,16367,657,0001,009,0002,285,568
9Jul 14, 2022 22:358,27795,350,49467,687,0001,010,0002,285,568
10Jul 14, 2022 22:358,28889,680,11567,795,000996,0002,285,568
11Jul 14, 2022 22:358,29095,639,74267,811,000997,0002,531,328
12Jul 14, 2022 22:358,29195,042,41367,821,000997,0002,383,872
13Jul 14, 2022 22:358,888128,584,55273,768,01802,281,472
14Jul 14, 2022 22:358,896142,728,01073,839,27502,273,280
15Jul 14, 2022 22:358,904137,928,27773,900,40002,281,472