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 listSep 3, 2021 13:31Ilya AniskovetsIlya AniskovetsError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 3, 2021 13:2900000Error: expected "53680956376028493 ", got "6973609072998342093"
2Sep 3, 2021 13:3147,990453,696,906398,317,97502,269,184
3Sep 3, 2021 13:3148,039459,895,940398,724,22702,269,184
4Sep 3, 2021 13:3148,078475,315,100399,049,85602,260,992