Two Elevator
CodeChefOpen on judge ↗
Vikram went into his appartment house entrance, now he is on the 1-th floor. He was going to call the elevator to go up to his apartment. There are only two elevators in his house. Vikram knows for sure that: the first elevator is currently on the floor a (it is currently motionless), the second elevator is located on floor b and goes to floor c (b≠c). Please note, if b=1, then the elevator is a
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