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 20, 2023 18:26gchebanovgchebanovScore: 10,029Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 18:269,528143,250,55279,081,20902,183,168
2Jul 20, 2023 18:269,966139,043,09882,720,89902,211,840
3Jul 20, 2023 18:269,974149,202,33082,787,82202,199,552
4Jul 20, 2023 18:269,992108,467,20180,934,0001,998,0002,338,816
5Jul 20, 2023 18:2610,009105,306,03281,071,0002,001,0002,322,432
6Jul 20, 2023 18:2610,014105,505,11582,113,0001,001,0002,478,080
7Jul 20, 2023 18:2610,021109,587,55781,168,0002,004,0002,473,984
8Jul 20, 2023 18:2610,029106,304,79181,232,0002,005,0002,318,336
9Jul 20, 2023 18:2610,031105,275,48381,251,0002,006,0002,326,528
10Jul 20, 2023 18:2610,034106,613,91281,277,0002,006,0002,318,336
11Jul 20, 2023 18:2610,100109,565,05981,832,0001,995,0002,330,624
12Jul 20, 2023 18:2610,119108,115,46481,992,0001,999,0002,478,080
13Jul 20, 2023 18:2610,254113,477,57483,105,0002,002,0002,482,176
14Jul 20, 2023 18:2610,257106,853,49682,132,0003,004,0002,441,216
15Jul 20, 2023 18:2610,279115,713,46384,309,0001,003,0002,510,848