← All problemsSign in

E - QaZYrAnIbcSeArChDwC

Chef is playing a video game in which he has to destroy $N$ enemy bases in almost $D$ days. Each enemy base has some health $H_i$. Chef is having a special type of missile with power $S$ which can be used on $DAY$ $0$. All the bases having health less or equal to $S$ will be destroyed on $DAY$ $0$. On the $i_{th}$ day $i>0$, all the bases which are at the exact distance of $i$ from bases

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start