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 23:16dzaimadzaimaScore: 16,298Success
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 23:1616,234159,852,643132,748,0001,996,0002,269,184
2Jul 2, 2023 23:1616,244162,097,141132,832,0001,997,0002,273,280
3Jul 2, 2023 23:1616,261161,965,535132,969,0001,999,0002,289,664
4Jul 2, 2023 23:1616,269163,050,889133,036,0002,000,0002,277,376
5Jul 2, 2023 23:1616,271161,269,507134,048,0001,000,0002,289,664
6Jul 2, 2023 23:1616,280160,146,673133,119,0002,001,0002,269,184
7Jul 2, 2023 23:1616,298163,762,890134,274,0001,002,0002,289,664
8Jul 2, 2023 23:1616,422161,780,926136,299,00002,289,664
9Jul 2, 2023 23:1616,525162,171,550135,156,0002,002,0002,269,184
10Jul 2, 2023 23:1616,585204,558,833137,655,65402,256,896
11Jul 2, 2023 23:1616,594191,095,974137,728,41002,277,376
12Jul 2, 2023 23:1616,597201,178,516137,755,48302,273,280