2015年Bebras挑战练习题-Crane Operating(起重机操作)

The crane in the port of Lodgedam responds to six different input commands:

洛德达姆港的起重机能响应六种不同的输入指令:

  1. left 
  2. right
  3. up 向上
  4. down 下来
  5. catch 
  6. release 释放

Crate A is in the left position, crate B is in the position on the right.

箱子 A 在左边的位置,箱子 B 在右边的位置。

Question: 问题:

Using the command buttons, swap the position of the two crates and finalize by leaving the crane in its initial position.

使用命令按钮,交换两个集装箱的位置,最后将起重机放回初始位置。

2015年Bebras挑战练习题-Crane Operating(起重机操作)

 

 

 

 

Explanation 解释

The correct sequence of commands is:

正确的命令序列是:

Down Catch Up Right Down Release Up Right Down Catch Up Left Left Down Release Up Right Down Catch Up Right Down Release Up Left Left

向下 捕获 向右 向下 释放 向上 向右 向下 捕获 向上 向左 向左 向下 释放 向上 向右 向下 捕获 向上 向右 向下

When operating machines and computers, you must put the commands in the correct order. 

在操作机器和计算机时,您必须按正确的顺序输入指令。

Bebras新赛季备赛已开启,扫码领取Bebras真题资料⇓

欢迎咨询【Bebras专业辅导课程】

(Bebras每日一练部分展示)

在线客服
微信咨询