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 listOct 23, 2023 02:40sliceteamsliceteamScore: 7,981Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 23, 2023 02:407,93587,774,94963,868,0001,995,0002,273,280
2Oct 23, 2023 02:407,95290,088,40865,000,0001,000,0002,396,160
3Oct 23, 2023 02:407,96595,603,62965,106,0001,001,0002,273,280
4Oct 23, 2023 02:407,96590,149,80565,109,0001,001,0002,273,280
5Oct 23, 2023 02:407,96987,968,73464,138,0002,004,0002,273,280
6Oct 23, 2023 02:407,97092,896,48964,145,0002,004,0002,273,280
7Oct 23, 2023 02:407,98087,597,19264,224,0002,007,0002,400,256
8Oct 23, 2023 02:407,98190,221,60265,236,0001,003,0002,392,064
9Oct 23, 2023 02:407,98692,832,64065,276,0001,004,0002,400,256
10Oct 23, 2023 02:407,99789,133,66766,375,00002,273,280
11Oct 23, 2023 02:408,01086,902,56065,472,0001,007,0002,482,176
12Oct 23, 2023 02:408,38198,005,30068,555,0001,008,0002,273,280
13Oct 23, 2023 02:408,567142,082,10471,104,13502,277,376
14Oct 23, 2023 02:408,569139,751,40871,122,24002,281,472
15Oct 23, 2023 02:408,571130,259,70071,139,26202,285,568