# Bee and lizard in a room [closed]

There is a bee and a lizard at the corner of an $l\times b\times h$ cuboid. The bee can fly. The lizard can walk on walls, the ceiling or the floor. Both must reach the diagonally opposite corner.

What is the minimum distance must they cover to do so?

• This sounds like a homework question. – SirParselot Sep 10 '15 at 14:17
• @SirParselot No, I already know the answer. – ghosts_in_the_code Sep 10 '15 at 14:18
• It wasn't meant to be a jab at you I was just reminiscing in my thoughts of homework long ago. The good old days – SirParselot Sep 10 '15 at 14:20

Assuming the "diagonally opposite corner" means "the one on the other side of the center of the room" (that is the internal diagonal). We get:

The bee must travel the length of the internal diagonal which is $\sqrt{l*l + b*b + h*h}$, because it can go in a straight line

And (ah, dagn it, I fell right into that one):

Lizard: let m1, m2, m3 be the sorted l,b,h. Then $\sqrt{(m1+m2)*(m1+m2) + m3*m3})$