英语翻译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
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/25 16:00:41
英语翻译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
英语翻译
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.
For a given
request list,you are to compute the total time spent to fulfill the
requests on the list.The elevator is on the 0th floor at the beginning
and does not have to return to the ground floor when the requests are
fulfilled.
英语翻译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
我们悲催的城市的最高的大楼只有一部电梯,电梯上的按钮列表是一系列的正数的按钮,按钮数字表示电梯将会停留的楼层 ,这是按照程序指令设计好的.电梯上行一层需要6秒时间.下行需要4秒,每层楼停留5秒.
根据所给的按钮,你可以计算出电梯运行的总时间,如果你把全部按键都按上,电梯就会显示在初始位置的0楼的位置,不会返回到一楼了.
Two things to do: Find a general formula to generate the time needed. If there is a list, fill up the list.
The highest building in our city has only one elevator.
我们最高的大厦(建筑物)只有一个升降机(电梯)。
A request list is made up with N positive numbers.
申请表上是N多正数组成的。
The numbers denote at which flo...
全部展开
The highest building in our city has only one elevator.
我们最高的大厦(建筑物)只有一个升降机(电梯)。
A request list is made up with N positive numbers.
申请表上是N多正数组成的。
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.
升降机上升一楼要花6秒,同时降一楼要花4秒。
The elevator will stay for 5 seconds at each stop.
升降机在每个楼层会逗留5秒。
For a given
request list, you are to compute the total time spent to fulfill the
requests on the list. The elevator is on the 0th floor at the beginning
and does not have to return to the ground floor when the requests are
fulfilled.
收起