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 listOct 13, 2023 05:25Serge SmirnovSerge SmirnovScore: 33,212Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 13, 2023 05:2433,186332,867,657275,444,37702,277,376
2Oct 13, 2023 05:2533,206340,849,279275,612,63002,281,472
3Oct 13, 2023 05:2433,209356,317,615275,636,33102,281,472
4Oct 13, 2023 05:2533,212342,754,665275,656,71102,252,800
5Oct 13, 2023 05:2433,222338,887,278275,745,83102,277,376
6Oct 13, 2023 05:2534,458358,595,006286,001,27502,285,568