← All problemsSign in

Too many Floors

CodeChefRating 717Open on judge ↗

Chef and Chefina are residing in a hotel. There are $10$ floors in the hotel and each floor consists of $10$ rooms. - Floor $1$ consists of room numbers $1$ to $10$. - Floor $2$ consists of room numbers $11$ to $20$. $\ldots$ - Floor $i$ consists of room numbers $10 \cdot (i-1) + 1$ to $10 \cdot i$. You know that Chef's room number is $X$ while Chefina's Room number is $Y$. If Chef starts f

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