2022-2023年Bebras挑战练习题-Tube of candy(一管糖果)

Brian’s favorite candies come in five flavors. Brian puts one of each flavor into a tube to take to school. During the day, Brian eats the candies in the order they come out of the top of the tube. Today he wants to eat them in the following order: , , , , .

布莱恩最喜欢的糖果有五种口味。布莱恩把每种口味的一颗糖果放进一个管子里带去学校。白天,布莱恩按照糖果从管子顶部出来的顺序吃糖果。今天他想按照以下顺序吃:  

Question 问题

Pack Brian’s tube for him so that he gets the candies in the preferred order.把布赖恩的管子给他装好,这样他就能按喜欢的顺序吃到糖果了。

(Drag the candies into the tube and press 'Save' when complete.)(将糖果拖入管中,完成后按“保存”。)

2022-2023年Bebras挑战练习题-Tube of candy(一管糖果)

 

 

 

 

 

Explanation 解释

For the candies to come out of the tube in the preferred order, it is important to understand that the first one in will be the last one out. This means that the tube of sweets needs to be filled like this:为了让糖果按照理想的顺序从管子里出来,重要的是要明白先进入管子的糖果会最后出来。这意味着装糖果的管子需要这样装填:

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

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

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

(Bebras每日一练部分展示)

在线客服
微信咨询