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:14AlexanderAlexanderScore: 180,901Success
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:14180,6951,562,591,9341,499,767,96802,256,896
2Jun 28, 2023 06:16180,8211,558,708,0321,500,815,28202,277,376
3Jun 28, 2023 06:16180,8771,558,735,7231,501,280,46102,269,184
4Jun 28, 2023 06:14180,9011,572,960,0411,501,474,16602,252,800
5Jun 28, 2023 06:16180,9701,568,025,9081,502,054,64702,269,184
6Jun 28, 2023 06:14181,0371,572,533,3261,502,607,13802,273,280