winter to go skiing. One day Bessie finds herself at the top left
corner of an R (1 <= R <= 100) by C (1 <= C <= 100) grid of elevations
E (-25 <= E <= 25). In order to join FJ and the other cows at a
discow party, she must get down to the bottom right corner as quickly
as she can by travelling only north, south, east, and west.
Bessie starts out travelling at a initial speed V (1 <= V <=
1,000,000). She has discovered a remarkable relationship between
her speed and her elevation change. When Bessie moves from a
location of height A to an adjacent location of height B, her speed
is multiplied by the number 2^(A-B). The time it takes Bessie to
travel from a location to an adjacent location is the reciprocal
of her speed when she is at the first location.
Find the both smallest amount of time it will take Bessie to join
her cow friends and the number of moves required by the path (a
move is a transition from one location to another adjacent location).
从a 点到 b 点时，速度变为v(a)*2^(A-B)(A,B为对应点的高度),从 a 到 b 所需
的时间为 a 的速度的倒数，她可向前后左右四个方向移动