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:26Serge SmirnovSerge SmirnovError
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:2600000Error: expected "53682193045448778 ", got "53682193042888778 "stderr
2Oct 13, 2023 20:2633,137354,735,090275,039,97102,289,664
3Oct 13, 2023 20:2733,141344,114,126275,067,45302,301,952
4Oct 13, 2023 20:2733,141339,659,116275,072,25702,281,472
5Oct 13, 2023 20:2733,178346,985,964275,373,84902,273,280
6Oct 13, 2023 20:2634,685352,226,268287,886,98402,281,472
7Oct 13, 2023 20:2634,754354,571,677288,454,16602,277,376