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 listAug 27, 2023 19:24Matthew DowneyMatthew DowneyScore: 56,547Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 27, 2023 19:2456,522529,471,306469,133,36702,203,648
2Aug 27, 2023 19:1756,523525,607,597469,137,88502,207,744
3Aug 27, 2023 19:1756,543548,822,898469,308,51102,191,360
4Aug 27, 2023 19:2456,547524,748,494469,342,13102,207,744
5Aug 27, 2023 19:2456,565531,879,747469,486,02102,203,648
6Aug 27, 2023 19:1756,607538,958,556469,839,91802,289,664