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 2, 2023 20:20dzaimadzaimaScore: 18,797Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2023 20:2018,734186,185,470154,491,0001,003,0002,437,120
2Jul 2, 2023 20:2018,744182,184,303152,581,0002,991,0002,400,256
3Jul 2, 2023 20:2018,763182,309,746154,738,000998,0002,392,064
4Jul 2, 2023 20:2018,764185,302,401152,747,0002,995,0002,392,064
5Jul 2, 2023 20:2018,768179,610,123153,780,0001,997,0002,490,368
6Jul 2, 2023 20:2018,774183,921,071152,827,0002,996,0002,428,928
7Jul 2, 2023 20:2018,797182,543,969153,015,0003,000,0002,437,120
8Jul 2, 2023 20:2018,797187,725,639154,013,0002,000,0002,437,120
9Jul 2, 2023 20:2018,805183,573,108153,078,0003,001,0002,445,312
10Jul 2, 2023 20:2019,741237,991,778163,852,88102,306,048
11Jul 2, 2023 20:2019,754235,428,533163,956,91802,297,856
12Jul 2, 2023 20:2019,758243,489,252163,990,60302,289,664