Hello all,
This is a problem from the recent contest Codeforces Round #643 Div 2 named Game with Array (Problem D).
First claim of the editorial is that the answer is "NO" if S<2*N. I find it difficult to reach this conclusion during the contest.
As I can see that a lot of people were able to solve this problem during the contest, so I would like to hear your exact thought process/intuition/reasoning which you used during the contest. It would be great if you explain in detail.
Thank you.
Hi, during the contest I looked at solutions for smaller $$$N$$$, like $$$N \leq 2$$$. When $$$N$$$ is small, it's easy to construct a solution by hand.
Then I noticed as I made $$$N$$$ incrementally larger, the terms must get smaller and smaller towards $$$1$$$.
And eventually no solution will exist when $$$N$$$ is too large, in particular when $$$S<2N$$$.