I prepared a problem similar to 851D - Arpa and a list of numbers 2 months ago and now I want share it with you :)
Judge for easier version of 851D (when we can do one of operations only once in problem)
I prepared a problem similar to 851D - Arpa and a list of numbers 2 months ago and now I want share it with you :)