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 07:17AlexanderAlexanderScore: 198,004Success
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 07:17195,5136,587,687,7651,622,757,38702,281,472
2Jun 28, 2023 07:17197,6847,337,828,9931,640,778,26802,244,608
3Jun 28, 2023 07:17197,7117,986,092,5471,640,999,85502,314,240
4Jun 28, 2023 07:17198,0046,410,294,9611,643,429,24402,256,896
5Jun 28, 2023 07:17198,5206,193,008,0571,647,714,79802,195,456
6Jun 28, 2023 07:17198,9687,567,711,4701,651,437,87002,207,744