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 23, 2022 10:00Robert BurkeRobert BurkeScore: 9,908Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 23, 2022 10:009,795136,475,50081,295,44802,203,648
2Jul 23, 2022 10:009,796135,599,79281,304,62102,191,360
3Jul 23, 2022 10:009,800137,572,87381,337,26402,207,744
4Jul 23, 2022 10:009,887106,565,76680,063,0002,001,0002,449,408
5Jul 23, 2022 10:009,896102,282,59280,131,0002,003,0002,277,376
6Jul 23, 2022 10:009,897100,626,42780,139,0002,003,0002,449,408
7Jul 23, 2022 10:009,907105,964,57081,228,0001,002,0002,277,376
8Jul 23, 2022 10:009,908103,943,11080,235,0002,005,0002,445,312
9Jul 23, 2022 10:009,912103,882,87480,263,0002,006,0002,539,520
10Jul 23, 2022 10:009,916103,661,95081,299,0001,003,0002,277,376
11Jul 23, 2022 10:009,917103,449,86481,311,0001,003,0002,277,376
12Jul 23, 2022 10:009,919105,981,66780,320,0002,008,0002,445,312
13Jul 23, 2022 10:009,927103,051,20581,389,0001,004,0002,539,520
14Jul 23, 2022 10:009,935110,503,46181,452,0001,005,0002,277,376
15Jul 23, 2022 10:0010,118105,866,74581,983,0001,999,0002,527,232