阅读背景:

PAT 1008 Elevator (20分) 加减法难度级别

来源:互联网 

题目

The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified order. It costs 6 seconds to move the elevator up one floor, and 4 seconds to move down one floor. The elevator will stay for 5 seconds at each stop.The highest building in our city has only o




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: