Snorlax hates working out
CodeChefOpen on judge ↗
The days are getting warmer, and it's about time that Snorlax starts working out. Snorlax, as lazy as he is, is least interested. However, Ash is ready with a schedule, and this time it's a little bit different. Ash gives a plan for each day, telling how many days Snorlax needs to work out in the next $K$ consecutive days. The $N-day$ workout plan, prepared by Ash, consists of $N-K+1$ numbers, t
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