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 listJan 31, 2024 06:11AnSaAnSaScore: 49,012Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 31, 2024 06:0748,122464,266,289399,410,45802,293,760
2Jan 31, 2024 06:0748,124464,019,770399,428,16602,285,568
3Jan 31, 2024 06:0748,126486,932,386399,442,57902,297,856
4Jan 31, 2024 06:1149,012471,120,395406,797,60902,277,376
5Jan 31, 2024 06:1149,016471,099,029406,836,84002,265,088
6Jan 31, 2024 06:1149,017469,470,980406,839,99202,273,280