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 9, 2023 16:27LukasLukasScore: 261,553Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2023 19:55260,0572,235,716,5322,158,474,82202,191,360
2Jul 9, 2023 16:27260,3632,227,153,0892,161,012,39602,191,360
3Jul 4, 2023 19:55260,7732,230,667,1282,164,419,90202,195,456
4Jul 9, 2023 16:27261,5532,239,645,7422,170,889,74402,191,360
5Jul 4, 2023 19:55264,2112,253,339,4832,192,953,75402,195,456
6Jul 9, 2023 16:27316,4842,694,178,9552,626,818,50902,195,456