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 20:15Serge SmirnovSerge SmirnovScore: 32,661Success
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 20:1432,645342,718,690270,955,44302,277,376
2Oct 13, 2023 20:1432,651349,396,801271,003,93702,285,568
3Oct 13, 2023 20:1432,655344,852,716271,034,60402,285,568
4Oct 13, 2023 20:1532,661334,436,841271,082,89302,285,568
5Oct 13, 2023 20:1532,702351,376,911271,425,13302,256,896
6Oct 13, 2023 20:1534,046339,723,797282,581,67002,297,856