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 23, 2024 20:49Kevin HeaveyKevin HeaveyScore: 47,179Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2023 14:2347,118471,372,065391,080,55502,260,992
2Sep 8, 2023 14:2347,142464,867,267391,279,88602,228,224
3Jan 23, 2024 20:4947,169454,483,387391,502,34702,228,224
4Jan 23, 2024 20:4947,179460,102,703391,585,84302,236,416
5Sep 8, 2023 14:2347,251458,708,119392,185,77202,215,936
6Jan 23, 2024 20:4947,265468,772,817392,297,82102,236,416