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 15, 2022 04:06Robert BurkeRobert BurkeScore: 8,270Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 15, 2022 04:068,17098,655,10066,813,000997,0002,412,544
2Jul 15, 2022 04:068,17298,064,42366,830,000997,0002,510,848
3Jul 15, 2022 04:068,17992,741,37066,886,000998,0002,510,848
4Jul 15, 2022 04:068,25088,931,26267,465,0001,006,0002,510,848
5Jul 15, 2022 04:068,25487,049,31468,510,00002,498,560
6Jul 15, 2022 04:068,26390,598,37168,586,00002,404,352
7Jul 15, 2022 04:068,27095,422,05468,637,00002,408,448
8Jul 15, 2022 04:068,27094,578,77967,635,0001,009,0002,490,368
9Jul 15, 2022 04:068,27789,157,09867,707,000995,0002,416,640
10Jul 15, 2022 04:068,29098,562,59467,810,000997,0002,510,848
11Jul 15, 2022 04:068,29591,376,06467,850,000997,0002,408,448
12Jul 15, 2022 04:068,38895,936,62268,609,0001,008,0002,412,544
13Jul 15, 2022 04:068,934150,022,04474,152,41802,281,472
14Jul 15, 2022 04:068,938127,270,04874,183,84702,293,760
15Jul 15, 2022 04:068,942122,604,07474,216,33802,289,664