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 listJul 14, 2024 16:53matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 14, 2024 16:5400000Error: expected "53691822118840393 ", got "68682722760649865"stderr
2Jul 14, 2024 16:554,360103,073,79236,188,02502,240,512
3Jul 14, 2024 16:534,37090,117,79436,275,06202,244,608
4Jul 14, 2024 16:534,373110,699,84036,292,38302,392,064
5Jul 14, 2024 16:544,376101,718,88436,319,50802,252,800
6Jul 14, 2024 16:534,37898,615,50336,334,15402,256,896
7Jul 14, 2024 16:544,392115,868,67936,457,68502,256,896
8Jul 14, 2024 16:544,397110,022,99136,497,42402,256,896
9Jul 14, 2024 16:554,399111,799,70836,511,82202,252,800
10Jul 14, 2024 16:554,426121,479,59536,737,46702,256,896