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 01:15Joad NacerJoad NacerError
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 01:1500000Error: expected "53687788917363891 ", got "53687791353615723 "stderr
2Oct 11, 2024 01:1500000Error: expected "53683306871833208 ", got "53683307204781221 "stderr
3Oct 11, 2024 01:1400000Error: expected "53690180957917526 ", got "53690196884668634 "stderr
4Oct 11, 2024 01:1400000Error: expected "53682737930177622 ", got "53682757505703031 "stderr
5Oct 11, 2024 01:1300000Error: expected "53690119587204875 ", got "53690120522088055 "stderr
6Oct 11, 2024 01:155,33370,741,16442,249,0002,011,0002,334,720
7Oct 11, 2024 01:155,33570,450,39341,264,0003,019,0002,519,040
8Oct 11, 2024 01:155,33666,456,50041,270,0003,019,0002,510,848
9Oct 11, 2024 01:155,33763,989,63444,299,00002,510,848
10Oct 11, 2024 01:155,34270,445,47643,333,0001,007,0002,510,848
11Oct 11, 2024 01:155,34765,606,73741,352,0003,025,0002,510,848
12Oct 11, 2024 01:155,34771,070,01141,353,0003,025,0002,514,944
13Oct 11, 2024 01:155,35066,271,68041,374,0003,027,0002,334,720
14Oct 11, 2024 01:155,35380,160,36541,405,0003,029,0002,387,968
15Oct 11, 2024 01:155,45068,954,01242,221,0003,015,0002,330,624
16Oct 11, 2024 01:155,45170,375,19843,232,0002,010,0002,330,624
17Oct 11, 2024 01:155,45763,387,02942,274,0003,019,0002,338,816