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 16, 2024 07:50matsuoka-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 16, 2024 07:5000000Error: expected "53688969450154432 ", got "93422701008018124"
2Jul 16, 2024 07:5000000Error: No answer to stdout. Died or killed?
3Jul 16, 2024 07:5000000Error: expected "53692561011537266 ", got "82809595861602835"
4Jul 16, 2024 07:5100000Error: expected "53693020785349480 ", got "80832675733068046"
5Jul 16, 2024 07:5100000Error: expected "53690363904788538 ", got "77586559222730955"
6Jul 16, 2024 07:5100000Error: No answer to stdout. Died or killed?
7Jul 16, 2024 07:5200000Error: No answer to stdout. Died or killed?
8Jul 16, 2024 07:5200000Error: expected "53687734931443476 ", got "65131519048949253"
9Jul 16, 2024 07:524,338104,236,19036,002,10102,396,160
10Jul 16, 2024 07:524,340106,306,02236,018,66702,252,800
11Jul 16, 2024 07:524,35490,229,57436,136,44502,252,800