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 29, 2022 11:29@AirM4rx@AirM4rxScore: 140,175Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2022 11:29139,9721,220,302,6171,161,767,07002,363,392
2Dec 29, 2022 11:29140,0821,229,231,2341,162,681,64302,338,816
3Dec 29, 2022 11:29140,1171,230,995,2171,162,970,27202,367,488
4Dec 29, 2022 11:29140,1751,231,087,7951,163,452,43502,334,720
5Dec 29, 2022 11:29140,2411,232,914,8531,164,000,56402,330,624
6Dec 29, 2022 11:29140,4071,237,400,1981,165,374,64302,363,392