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 listDec 3, 2022 21:51Xavier R. GuérinXavier R. GuérinScore: 91,086Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 3, 2022 21:5191,063814,899,888755,820,80002,273,280
2Dec 3, 2022 21:4991,080819,302,736755,960,44902,281,472
3Dec 3, 2022 21:4991,081819,594,765755,969,74802,301,952
4Dec 3, 2022 21:5191,086818,424,759756,012,11502,293,760
5Dec 3, 2022 21:5191,089827,213,946756,042,01702,293,760
6Dec 3, 2022 21:4991,099837,737,760756,123,55202,289,664