Introduction - If you have any usage issues, please Google them yourself
Oh, one day I had a dream, a very strange elevator. Each floor of the building the elevator can be stopped, and the i-floor (1 < = i < = N) has a number Ki (0 < = Ki < = N). Lift only four buttons: on, off, up and down. Equal to the current upper and lower layers that the figure on the floor. Of course, if you can not meet the requirements, the corresponding button will not work. For example: 33125 represents the Ki (K1 = 3, K2 = 3, ... ...), starting from the first floor. The first floor, press the " on" can go to the 4th floor, press the " down" does not work, because there is no-2 floor. So, from A to B floor building at least according to several button?