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 9, 2023 14:07Serge SmirnovSerge SmirnovScore: 39,868Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 9, 2023 14:0639,851407,959,776330,766,44002,289,664
2Oct 9, 2023 14:0639,860398,192,522330,834,40702,285,568
3Oct 9, 2023 14:0739,862401,620,821330,852,94402,281,472
4Oct 9, 2023 14:0739,868395,830,048330,901,75102,277,376
5Oct 9, 2023 14:0739,871402,732,547330,932,07702,285,568
6Oct 9, 2023 14:0639,887400,133,521331,064,03802,285,568