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 listJan 1, 2023 16:24Hal FHal FScore: 6,750Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 16:246,67177,863,73153,360,0002,013,0002,330,624
2Jan 1, 2023 16:246,67486,981,14152,374,0003,021,0002,326,528
3Jan 1, 2023 16:246,69686,722,18555,575,00002,498,560
4Jan 1, 2023 16:246,72181,550,92353,795,0001,992,0002,285,568
5Jan 1, 2023 16:246,73484,386,08152,900,0002,994,0002,318,336
6Jan 1, 2023 16:246,73578,677,77752,908,0002,994,0002,334,720
7Jan 1, 2023 16:246,73684,635,79653,916,0001,996,0002,326,528
8Jan 1, 2023 16:246,75078,045,03053,025,0003,001,0002,285,568
9Jan 1, 2023 16:246,78781,570,54153,311,0003,017,0002,416,640
10Jan 1, 2023 16:246,80383,616,41552,432,0004,033,0002,330,624
11Jan 1, 2023 16:246,81691,195,72954,552,0002,020,0002,494,464
12Jan 1, 2023 16:247,00381,936,75156,123,0002,004,0002,461,696
13Jan 1, 2023 16:247,226141,417,36659,973,27202,207,744
14Jan 1, 2023 16:247,541127,440,37062,587,78102,195,456
15Jan 1, 2023 16:247,560141,133,75762,749,04302,203,648