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:48AlexanderAlexanderScore: 153,102Success
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:47153,0901,351,202,2081,270,649,28102,256,896
2Jun 28, 2023 06:48153,0931,346,350,7071,270,672,87102,256,896
3Jun 28, 2023 06:47153,0971,340,720,6791,270,701,26302,260,992
4Jun 28, 2023 06:48153,1021,338,357,0251,270,747,56202,256,896
5Jun 28, 2023 06:47153,5961,341,651,2231,274,845,85802,256,896
6Jun 28, 2023 06:48153,6141,339,798,7391,274,998,04702,260,992