Lazy Chozi
CodeChefOpen on judge ↗
Chozi is, as usual, late for his class and is stuck on a staircase where he is being very skeptic about taking them since some of the stairs are wet and Chozi is wearing very slippery shoes. There are N stairs, numbered $1$ to $N$, out of which $K$ stairs are wet and the class is at the end of the $N$ - th stair. Chozi can skip $1$ or $2$ stairs if needed to avoid a wet stair, i.e. if Chozi is on
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