Skip to content / Đến nội dung
ThichHocToan.com

BEBRAS 2023 Grade 5-6 Round 2 Ext Question 3

BEBRAS · BEBRAS 2023 Grade 5-6 Round 2 Ext

Question 3

Bob designs a robot beaver that follows these commands.

Question illustration

English translation: Tx = go to location x; G = pick up wood; D = put down wood. For example, T4T2GT4D sends the robot to the bridge, then location 2, to pick up wood, back to the bridge, and to put down the wood. The robot works in this forest:

Question illustration

Which program collects the wood at locations 1, 2 and 3 and puts it at location 5? To cross the river, the robot must use the bridge.
  1. T4T1GT4T5DT4T1GT4T5DT4T1GT4T5D
  2. T4T1GT4T5DT4T2DT4T5GT4T3DT4T5G
  3. T4T3GT4T5DT4T2GT4T5DT4T1GT4T5D
  4. T4T1GT4DT4T2GT4DT4T3GT4D