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:34Joad 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:3500000Error: expected "53691194910201507 ", got "53691209058238400 "stderr
2Oct 11, 2024 01:3500000Error: expected "53683154942254967 ", got "53683155128004702 "stderr
3Oct 11, 2024 01:3500000Error: expected "53682811330171321 ", got "53682824504475056 "stderr
4Oct 11, 2024 01:3500000Error: expected "53680937597741629 ", got "53680954515367054 "stderr
5Oct 11, 2024 01:3400000Error: expected "53680779874851887 ", got "53680797628094902 "stderr
6Oct 11, 2024 01:344,49060,391,16235,251,0002,014,0002,510,848
7Oct 11, 2024 01:344,49961,536,17934,311,0003,027,0002,334,720
8Oct 11, 2024 01:354,50963,030,25635,401,0002,022,0002,510,848
9Oct 11, 2024 01:344,52362,214,86934,498,0003,043,0002,326,528
10Oct 11, 2024 01:344,52763,524,33536,561,0001,015,0002,510,848
11Oct 11, 2024 01:354,53262,646,12634,564,0003,049,0002,334,720
12Oct 11, 2024 01:344,53865,887,54236,646,0001,017,0002,514,944
13Oct 11, 2024 01:344,55760,600,54335,835,0001,990,0002,514,944
14Oct 11, 2024 01:354,56562,696,94836,866,0001,024,0002,506,752
15Oct 11, 2024 01:344,56762,614,47135,913,0001,995,0002,330,624
16Oct 11, 2024 01:354,57557,311,16935,972,0001,998,0002,285,568
17Oct 11, 2024 01:344,57563,150,59335,975,0001,998,0002,330,624
18Oct 11, 2024 01:344,57962,942,78336,003,0002,000,0002,330,624
19Oct 11, 2024 01:344,58860,564,58137,079,0001,002,0002,502,656
20Oct 11, 2024 01:354,60157,790,33837,181,0001,004,0002,330,624
21Oct 11, 2024 01:354,60762,672,69936,228,0002,012,0002,506,752
22Oct 11, 2024 01:344,61463,202,46236,285,0002,015,0002,330,624
23Oct 11, 2024 01:344,61858,605,18835,301,0003,025,0002,330,624