2022-2023年Bebras挑战练习题-Go Green(走绿色)

The beavers are painting pictures, made of different shapes, on a computer.海狸们正在电脑上绘制由不同形状组成的图画。

2022-2023年Bebras挑战练习题-Go Green(走绿色)

They can paint any shape by selecting one of four colors and then clicking on the shape.他们可以通过选择四种颜色中的一种,然后点击形状来给任何形状上色。

Example:例子:

The beavers could paint the 'face'  completely blue with just two moves: 海狸只需两步就能把“脸”完全涂成蓝色:

  1. Select yellow, paint the red part to get: 选择黄色,将红色部分涂成黄色得到:
  2. Then select blue, paint the yellow part to get: 然后选择蓝色,将黄色部分涂成蓝色,得到:

Task 任务:

Make the pattern below completely green with the fewest number of moves possible.

(Press 'Save' when you have finished.)(完成后请按“保存”。)用尽可能少的步数将下面的图案全部涂成绿色。

 

 

 

 

 

Explanation 解释

Answer: 答案:

The picture can be painted completely green in three moves.这幅画可以在三步之内全部涂成绿色。

Explanation: 解释:

The initial drawing contains four colours. Only one colour can be repainted by a single filling.最初的图画包含四种颜色。每次填充只能重新绘制一种颜色。

So the minimum number of moves is three.所以最少需要移动三次。

  1. Yellow to blue: we got rid of the yellow colour and got a single blue part.从黄色到蓝色:我们去掉了黄色,得到了一个单独的蓝色部分。
  2. Blue to red: we made one single red part.从蓝色到红色:我们制作了一个单独的红色部件。
  3. Red to green: we are done!从红到绿:我们完成了!

2022-2023年Bebras挑战练习题-Go Green(走绿色)

点击右侧文字,可获得更多在线练习题资源:>>> Bebras在线水平测试

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

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

(Bebras每日一练部分展示)

在线客服
微信咨询