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 3, 2023 14:29dzaimadzaimaScore: 13,129Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2023 14:2912,999174,271,643107,888,92302,277,376
2Jul 3, 2023 14:2913,002172,251,919107,912,87802,273,280
3Jul 3, 2023 14:2913,040165,092,175108,229,18302,260,992
4Jul 3, 2023 14:2913,122132,129,640106,917,0001,998,0002,289,664
5Jul 3, 2023 14:2913,122136,257,653106,917,0001,998,0002,269,184
6Jul 3, 2023 14:2913,129133,288,523106,969,0001,999,0002,289,664
7Jul 3, 2023 14:2913,129132,050,174106,975,0001,999,0002,265,088
8Jul 3, 2023 14:2913,130136,419,656106,984,0001,999,0002,289,664
9Jul 3, 2023 14:2913,131132,169,501106,990,0001,999,0002,289,664
10Jul 3, 2023 14:2913,132134,031,071106,996,0001,999,0002,289,664
11Jul 3, 2023 14:2913,133135,278,979107,008,0002,000,0002,527,232
12Jul 3, 2023 14:2913,135136,450,895108,017,0001,000,0002,269,184