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 listJun 28, 2023 06:27AlexanderAlexanderScore: 153,086Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2023 06:26153,0621,341,364,4371,270,411,31802,256,896
2Jun 28, 2023 06:27153,0711,325,245,0351,270,492,72402,260,992
3Jun 28, 2023 06:26153,0811,341,760,0571,270,572,64202,269,184
4Jun 28, 2023 06:26153,0861,329,534,9821,270,615,69102,265,088
5Jun 28, 2023 06:27153,4421,332,074,0851,273,570,62002,269,184
6Jun 28, 2023 06:27157,6281,370,712,7591,308,310,29502,256,896