Tactical Combat
CodeChefOpen on judge ↗
Ash is on his way to becoming the Pokemon Master. His pokemon can perform the following moves: 1. **Tackle** - Deal damage worth $X$ points 2. **Grow** - Increase damage by $Y$ points i.e. $X$ = $X$ + $Y$ But, it can only perform Grow first (0 or more times) and then tackle (0 or more) times after which it cannot perform Grow again. That is, it cannot perform the Grow operation once it has perfor
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