Rosetta Problems

奇怪的电梯

https://www.acwing.com/problem/content/6050