There are 5 persons who are trapped in 5 different elevators. There are 49 floors in the building. The 5 persons are respectively on the 17th, 26th, 20th, 19th, 31st floors. The elevator doors open only when all the elevators are between 21st and 25th floor in descending order. There are 2 buttons +8 and -13 that will be activated only when 2 elevators are selected together. The person on the 19th floor decides to take charge and get all of them out. What is the minimum number of moves in which he can accomplish the target?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
My solution to this Problem is A salute to one of my 4 Idols F i r s t w e s u p p o s e t h a t T h e p e r s o n o n 1 9 t h f l o o r p r e s s e s + 8 B u t t o n x t i m e s a n d − 1 3 b u t t o n y t i m e s . E v e r y t i m e h e p r e s s e s a b u t t o n a n y o f t h e l i f t s h o w s a n i n c r e m e n t o f 8 o r d e c r e m e n t o f 1 3 T h i s p r o c e d u r e r e d u c e s t h e s u m o f t h e f l o o r s l i f t w e r e e a r l i e r o n b y 1 3 o r i n c r e a s e s t h e m b y 8 F i r s t t h e s u m o f f l o o r s l i f t w e r e o n i s − 1 7 + 2 6 + 1 9 + 3 1 = 1 1 3 A n d l a t e r b e c o m e s 2 1 + 2 2 + 2 3 + 2 4 + 2 5 = 1 1 5 . S o t h e r e i s a n e t i n c r e a s e o f 2 . T h i s g i v e s u s t h e f o l l o w i n g e q u a t i o n − 8 x − 1 3 y = 2 − − > 8 x − 1 6 y + 3 y = 2 D i v i d i n g b o t h s i d e d b y 8 w e h a v e 3 y m u s t l e a v e r e m a i n d e r 2 w h e n d i v i d e d b y 8 . A l s o n o t e t h a t x > y S o y m u s t b e i n f o r m o f 8 k + 6 s o y c a n b e = 6 , 1 4 , 2 2 . . . . F r o m t h e o p t i o n s w e h a v e o n l y o n e p o s s i b l e v a l u e i . e 6 . P u t t i n g 6 w e h a v e 8 x − 7 8 = 2 − − − > 8 x = 8 0 − − − > x = 1 0 s o x + y = 1 6 w h i c h i s o u r a n s w e r .