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 11, 2024 02:03Joad NacerJoad NacerScore: 4,491Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2024 02:034,47265,235,56935,110,0002,006,0002,334,720
2Oct 11, 2024 02:034,47464,388,12235,124,0002,007,0002,334,720
3Oct 11, 2024 02:034,47765,631,87435,150,0002,008,0002,510,848
4Oct 11, 2024 02:034,47763,407,68435,147,0002,008,0002,334,720
5Oct 11, 2024 02:034,47865,690,34435,156,0002,008,0002,334,720
6Oct 11, 2024 02:034,48263,923,77034,184,0003,016,0002,510,848
7Oct 11, 2024 02:034,48365,741,40035,195,0002,011,0002,510,848
8Oct 11, 2024 02:034,48760,351,35135,227,0002,013,0002,510,848
9Oct 11, 2024 02:034,48864,045,21734,231,0003,020,0002,334,720
10Oct 11, 2024 02:034,49164,696,36634,256,0003,022,0002,510,848
11Oct 11, 2024 02:034,50266,059,75535,345,0002,019,0002,510,848
12Oct 11, 2024 02:034,50259,749,02834,340,0003,030,0002,334,720
13Oct 11, 2024 02:034,55762,861,60736,830,000995,0002,506,752
14Oct 11, 2024 02:034,55865,178,57235,844,0001,991,0002,506,752
15Oct 11, 2024 02:034,57061,199,86335,934,0001,996,0002,326,528
16Oct 11, 2024 02:034,57462,146,51735,964,0001,998,0002,330,624
17Oct 11, 2024 02:034,57861,676,96535,999,0001,999,0002,330,624
18Oct 11, 2024 02:034,57861,902,15634,999,0002,999,0002,330,624