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:33Robert BurkeRobert BurkeScore: 8,280Success
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:338,25290,985,00467,488,0001,007,0002,289,664
2Jul 14, 2022 22:338,261102,113,65467,556,0001,008,0002,523,136
3Jul 14, 2022 22:338,262101,617,01367,565,0001,008,0002,510,848
4Jul 14, 2022 22:338,26597,679,95967,593,0001,008,0002,269,184
5Jul 14, 2022 22:338,27294,329,13167,650,0001,009,0002,265,088
6Jul 14, 2022 22:338,27393,938,85368,670,00002,514,944
7Jul 14, 2022 22:338,27496,490,36367,662,0001,009,0002,265,088
8Jul 14, 2022 22:338,28092,640,12666,730,0001,991,0002,289,664
9Jul 14, 2022 22:338,28996,650,24666,804,0001,994,0002,514,944
10Jul 14, 2022 22:338,29097,629,03266,810,0001,994,0002,527,232
11Jul 14, 2022 22:338,29194,826,54966,824,0001,994,0002,289,664
12Jul 14, 2022 22:338,30888,667,93367,956,000999,0002,289,664
13Jul 14, 2022 22:338,975130,898,96674,491,63302,285,568
14Jul 14, 2022 22:338,980134,993,02974,537,83102,281,472
15Jul 14, 2022 22:339,004140,646,54774,730,89102,277,376