Air Blimp
There are $N$ cities in a row. The $i$-th city from the left has a sadness of $A_i$. In an attempt to reduce the sadness of the cities, you can send [blimps](https://en.wikipedia.org/wiki/Blimp) from the left of city $1$ that move rightwards (i.e, a blimp crosses cities $1, 2, \ldots$ in order) You are given two integers $X$ and $Y$. For each blimp sent, you can make one of the following choices
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start