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 23, 2024 15:34Serge SmirnovSerge SmirnovScore: 29,470Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 23, 2024 15:3429,450268,627,797243,435,0001,001,0002,367,488
2Oct 23, 2024 15:3429,451271,166,309242,452,0001,995,0002,277,376
3Oct 23, 2024 15:3429,464275,766,391243,548,0001,002,0002,367,488
4Oct 23, 2024 15:3429,470270,899,465243,600,000998,0002,289,664
5Oct 23, 2024 15:3429,488271,745,508242,755,0001,997,0002,289,664
6Oct 23, 2024 15:3429,489271,366,344242,758,0001,998,0002,269,184