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 28, 2024 21:23Paul ZhangPaul ZhangScore: 83,451Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 28, 2024 21:2183,291758,470,279691,312,74702,359,296
2Jul 28, 2024 21:2183,381757,794,522692,065,35102,232,320
3Jul 28, 2024 21:2383,442758,568,109692,571,55302,228,224
4Jul 28, 2024 21:2183,451759,937,609692,641,79502,232,320
5Jul 28, 2024 21:2383,498757,990,123693,033,21802,232,320
6Jul 28, 2024 21:2383,694766,969,029694,662,39802,367,488