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 12, 2023 12:56CadovvlCadovvlScore: 123,912Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 12, 2023 12:54121,9531,077,672,8281,012,210,16202,240,512
2Jun 12, 2023 12:54121,9691,080,996,5411,012,342,87702,240,512
3Jun 12, 2023 12:54122,0051,076,613,3141,012,639,13802,240,512
4Jun 12, 2023 12:56123,9121,090,788,3031,028,468,49202,224,128
5Jun 12, 2023 12:56123,9171,092,778,7531,028,511,38002,232,320
6Jun 12, 2023 12:56123,9961,103,533,2511,029,167,78402,244,608