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 22, 2023 22:01sliceteamsliceteamScore: 8,718Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 22, 2023 22:018,597145,222,81471,355,99402,285,568
2Oct 22, 2023 22:018,621147,067,85271,552,21502,281,472
3Oct 22, 2023 22:018,652129,016,47771,811,63502,281,472
4Oct 22, 2023 22:018,68095,027,83471,045,0001,000,0002,273,280
5Oct 22, 2023 22:018,68992,901,04671,120,0001,001,0002,400,256
6Oct 22, 2023 22:018,70194,872,55171,214,0001,003,0002,273,280
7Oct 22, 2023 22:018,71094,577,99271,290,0001,004,0002,396,160
8Oct 22, 2023 22:018,71899,503,56971,355,0001,005,0002,273,280
9Oct 22, 2023 22:018,73796,055,71971,508,0001,007,0002,273,280
10Oct 22, 2023 22:018,73896,032,34371,516,0001,007,0002,400,256
11Oct 22, 2023 22:018,750100,745,73972,629,00002,273,280
12Oct 22, 2023 22:018,83194,128,95973,298,00002,396,160
13Oct 22, 2023 22:018,95797,540,88074,343,00002,396,160
14Oct 22, 2023 22:019,089101,141,64874,434,0001,005,0002,265,088
15Oct 22, 2023 22:019,209100,847,45176,431,00002,392,064