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 20, 2022 16:27Robert BurkeRobert BurkeScore: 8,153Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2022 16:278,12390,916,97967,419,00002,277,376
2Jul 20, 2022 16:278,13584,838,94267,520,00002,277,376
3Jul 20, 2022 16:278,13886,784,76666,540,0001,008,0002,424,832
4Jul 20, 2022 16:278,14296,956,61067,576,00002,277,376
5Jul 20, 2022 16:278,14390,117,08166,575,0001,008,0002,535,424
6Jul 20, 2022 16:278,147100,970,87767,619,00002,277,376
7Jul 20, 2022 16:278,15193,199,42566,661,000994,0002,433,024
8Jul 20, 2022 16:278,15395,972,64666,661,0001,010,0002,277,376
9Jul 20, 2022 16:278,15890,901,51266,698,0001,010,0002,539,520
10Jul 20, 2022 16:278,16798,452,97566,792,000996,0002,277,376
11Jul 20, 2022 16:278,17689,598,28165,865,0001,995,0002,277,376
12Jul 20, 2022 16:278,385102,236,34668,585,0001,008,0002,273,280
13Jul 20, 2022 16:279,669136,082,95780,250,39402,293,760
14Jul 20, 2022 16:279,686137,710,39280,397,74902,301,952
15Jul 20, 2022 16:279,697141,614,49180,485,15702,174,976