Bebras Solutions Guide 2021 R2 Secondary
Bebras Solutions Guide 2021 R2 Secondary
Bebras Solutions Guide 2021 R2 Secondary
Computational
Thinking Challenge
2021 Solutions Guide
Round 2
Secondary School
Grades 7–12 bebras.edu.au
Bebras Australia
Computational Thinking
Challenge
Bebras is an international initiative aiming The Bebras international community has now
to promote Computational Thinking skills grown to 60 countries with over 2.9 million
among students. students participating worldwide!
Started in 2004 by Professor Valentina ebras Australia began in 2014 and is now
B
Dagiene from the University of Vilnius, administered through CSIRO Digital Careers.
‘Bebras’ is Lithuanian for beaver. This refers
to their collaborative nature and strong In Australia, the Bebras Challenge takes place
work ethic. in March and August–September each year.
As of 2020, two separate challenges are
The International Bebras Committee meets offered for each round.
annually to assess potential questions and
share resources.Questions are submitted To find out more and register for the
by member countries and undergo a next challenge, visit bebras.edu.au
vetting process.
Engaging young
523
minds for Australian schools
Australia’s
participated in
Bebras R1 2021
digitalcareers.csiro.au
2
What is a
Solutions Guide?
Computational Thinking skills underpin the careers of the future. Creating opportunities
for students to engage in activities that utilise their critical and creative thinking along with
problem solving skills is essential to further learning. The Bebras Challenge is an engaging way
for students to learn and practice these skills.
Within this Solutions Guide you will find all of the questions and tasks from Round 1 of the
Bebras Australia Computational Thinking Challenge 2021. On each page above the question
you will find the age group, level of difficulty, country of origin and key Computational
Thinking skills.
After each question you will find the answer, an explanation, the Computational Thinking
skills most commonly used, and the Australian Digital Technologies curriculum key
concepts featured.
3
Contents
What is a Solutions Guide? 3 Years 9+10 41
What is Computational Thinking? 5 Recover my Robot 42
Computational Thinking skills alignment 6 Conveyor Belt 44
Australian Digital Technologies Permutations 46
curriculum key concepts 8 Party Message 48
Digital Technologies Glowing Panels 50
key concepts alignment 9
Echo Cypher 51
Years 7+8 11 Robot Parking 53
Colourful Flags 12 Beaver Meetings 55
Fake News 14 Traffic Lights 57
Arranging Cubes 16 Squares 59
Bus Schedule 18 Robot Tree Planter 61
Party Messages 20 Secret Siblings 62
At the Castle 22 Lost Car 63
Flowerbox 24 Key Points 65
Bakery on Wheels 26 Train Trip 66
Snakes and Ladders 27
Years 11+12 67
Decide-uous Trees 29
DNA Sequence 68
Cakes and Neighbours 31
Dinner Table 69
Household Appliances 33
Passwords 70
Beaverburg Delivery 35
Flag Semaphore 72
Wizard Beaver’s Alchemy 37
Interpret Programs 74
Car Factory 39
Mixed Results 76
Production Units 78
Three Workers 80
Decryption Map 82
Coin Collector 84
MathMachine 85
Optimal Processing Flow 87
Squirrel Prison 89
Telegraph Networks 90
Flipping Cards 92
4
What is
Computational
Thinking?
Computational Thinking is a set of skills that underpin learning within the Digital Technologies
classroom. These skills allow students to engage with processes, techniques and digital
systems to create improved solutions to address specific problems, opportunities or needs.
Computational Thinking uses a number of skills, including:
DECOMPOSITION
Breaking down problems into smaller, easier parts.
PATTERN RECOGNITION
Using patterns in information to solve problems.
ABSTRACTION
Finding information that is useful and taking away any information
that is unhelpful.
ALGORITHMS
Creating a set of instructions for solving a problem or completing
a task.
EVALUATION
Assessing a solution to a problem and using that information again
on new problems.
More Computational
Thinking resources
Visit digitalcareers.csiro.au/CTIA to download the Computational
Thinking in Action worksheets. These can be used as discussion
prompts, extension activities or a framework to build a
class project.
Each resource was designed to develop teamwork; critical and creative thinking;
problem solving; and Computational Thinking skills.
5
Computational Thinking
skills alignment
2021 Round 2 Decomposi- Pattern Modelling &
Grade level Abstraction Algorithms Evaluation
Questions tion Recognition Simulation
Years 7+8
Years 9+10
Permutations Easy
Squares Medium
Years 11+12
Passwords B Easy
MathMachine B Hard
7
Australian
Digital Technologies
curriculum key concepts
Abstraction
Hiding details of an idea, problem or solution that are not relevant, to focus on a manageable
number of aspects.
Data Collection
Numerical, categorical, or structured values collected or calculated to create information, e.g.
the Census.
Data Representation
How data is represented and structured symbolically for storage and communication, by
people and in digital systems.
Data Interpretation
The process of extracting meaning from data. Methods include modelling, statistical analysis,
and visualisation.
Specification
Defining a problem precisely and clearly, identifying the requirements, and breaking it down
into manageable pieces.
Algorithms
The precise sequence of steps and decisions needed to solve a problem. They often involve
iterative (repeated) processes.
Implementation
The automation of an algorithm, typically by writing a computer program (coding) or using
appropriate software.
Digital Systems
A system that processes data in binary, made up of hardware, controlled by software, and
connected to form networks.
Interactions
Human-Human Interactions: How users use digital systems to communicate and collaborate.
Human-Computer Interactions: How users experience and interface with digital systems.
Impact
Analysing and predicting how existing and created systems meet needs, affect people, and
change society and the world.
For more information on the Digital Technologies curriculum, please visit the
Australian Curriculum, Assessment and Reporting Authority (ACARA) website:
australiancurriculum.edu.au/f-10-curriculum/technologies/digital-technologies
8
Digital Technologies
key concepts alignment
2021 Data Data Imple-
Abstrac- Data Specifica- Algo- Digital Interac-
Round 2 Represen- Interpre- menta- Impacts
tion Collection tion rithms Systems tions
Questions tation tation tion
Years 7+8
Colourful Flags
Fake News
Arranging Cubes
Bus Schedule
Party Messages
At the Castle
Flower Box
Bakery on
Wheels
Snakes and
Ladders
Decide-uous
Trees
Cakes and
Neighbours
Household
Appliances A
Beaverburg
Delivery
Wizard Beaver's
Alchemy
Car Factory
Years 9+10
Recover my
Robot
Conveyor Belt
Permutations
Party Message A
Glowing Panels
Echo Cypher
Robot Parking
Beaver Meetings
Traffic Lights
Squares
Robot Tree
Planter
Secret Siblings
Lost Car
Key Points
Train Trip
9
Digital Technologies
key concepts alignment
2021 Data Data Imple-
Abstrac- Data Specifica- Algo- Digital Interac-
Round 2 Represen- Interpre- menta- Impacts
tion Collection tion rithms Systems tions
Questions tation tation tion
Years 11+12
DNA Sequence
Dinner Table
Passwords B
Flag Semaphore
Interpret
Programs
Mixed Results
Production Units
Three Workers
Decryption Map
Coin Collector
MathMachine B
Optimal
Processing Flow
Squirrel Prison
Telegraph
Networks
Flipping Cards B
10
Bebras Challenge
2021 Round 2
Years 7+8
This question comes from Years 3+4
Switzerland Years 5+6
Years 7+8 Easy
Colourful Flags
Years 9+10
Years 11+12
The Bebras shipyard builds excellent boats and every beaver would like to own a boat built by them.
But there is a problem: how do you recognise your boat if all the boats look alike?
To address this, the beavers decide to put flags on all the boats. The flags have the following design:
The beavers agree on three possible colour options for the three areas of the flag design: red, yellow,
and blue. While the two stripes may be of the same colour, the square in the centre must be a different
colour to the two stripes.
The beavers started to create a diagram which they use to show all possible colour combinations for
the flags. Unfortunately they did not finish and some of the flags are not completely coloured in yet.
Question
Help the beavers complete the diagram by clicking on the missing fields (in grey) to assign a colour
to them.
Note: there are multiple solutions, you only need to find one.
Answer
The answer is: there are multiple solutions, you only need to find any one solution.
Here is one example of one solution:
13
This question comes from Years 3+4
the Netherlands Years 5+6
Years 7+8 Easy
Fake News
Years 9+10
Years 11+12
Beaverland has a national broadcasting company that produces evening news bulletins. Most of the
news items are true, but some are fake.
Each day, four beavers – Ahmed, Bert, Lotte and DaHye – watch the evening news together.
NEWS
Question
When will the beavers agree that a news item is true?
Select one of the following options.
Always
Never
Answer
The answer is: D) Never
This can be established by drawing a table like this one:
15
This question comes from Years 3+4
Romania Years 5+6
Years 7+8 Easy
Arranging Cubes
Years 9+10
Years 11+12
Rebecca has several cubes of different heights that she wants to place in ascending order to form
a staircase.
On a face of each cube its height is written. When arranging the cubes, the smallest one must be on
the left.
Rebecca starts to arrange the cubes from left to right. She looks at all the cubes, and if a smaller cube is
placed to the right of a bigger cube, she switches their positions.
When she reaches the two last boxes (on the right-hand side), she starts over from the left.
Question
What is the number of switches she has to make?
Select one of the following options.
6 7 8 9
Answer
The answer is: C) 8
On the first pass she swaps cubes 5 and 3, then 5 and 4, then 5 and 1 and finally 5 and 2. So the result
should be: 3-4-1-2-5.
Start 53412
Swap one 35412
Swap two 34512
Swap three 34152
Swap four 34125
On the second pass, she switches 4 and 1; 4 and 2, so the result should be: 3-1-2-4-5.
Start 34125
Swap five 31425
Swap six 31245
On the third pass, she switches 3 and 1 and then 3 and 2 and the final result is: 1-2-3-4-5.
Start 31245
Swap seven 13245
Swap eight 12345
17
This question comes from Years 3+4
Thailand Years 5+6
Years 7+8 Easy
Bus Schedule
Years 9+10
Years 11+12
The following tables show when the orange bus, Route 1 and the blue bus, Route 2 will arrive at
each stop.
Route 1
Bus stop A
Bus stop B
10:00
10:20
11:00
11:20
12:00
12:20
A
Bus stop C 10:40 11:40 12:40
Route 2
Bus stop A 10:10 11:10
Question
If James is at Stop A at 11:05, what is the earliest time that he can reach Stop D?
Answer
The answer is: 12:00
10:00 10:30 11:00 11:30 12:00 12:30 13:00 13:30
A B C D E
A B C D E
A B C D E
A F C
A F C
Starting at Stop A
transition takes 0
Stop A at 11:05
wait
(transition needs 5')
Stop A at 11:10
wait Route 2
(transition needs 50') (transition needs 10')
Route 1 Route 2
(transition needs 20') (transition needs 10')
Route 1 wait
(transition needs 20') (transition needs 10')
Route 1 Route 1
(transition needs 20') (transition needs 20')
The problem now can be formulated as a shortest path problem, as it is known in graph theory.
Finding a path between two vertices (the boxes) in a graph such that the sum of the waits (the
transition times) of its constituent edges (the arrows) is minimised.
From the ellipse box at the top to the ellipse to the bottom one can find only 2 paths: the left
path has a total wait time of 0+5+50+20+20+20+0=115 minutes whereas the right path is
0+5+10+10+10+20+0=55 minutes thus the shortest time is the right path.
19
This question comes from Years 3+4
Ireland Years 5+6
Years 7+8 Easy
Party Messages
Years 9+10
Years 11+12
Three friends have a secret language for sending messages to each other. Each of them has written
down what they will bring to the party on a piece of paper using their secret language.
Emily and Olivia’s messages have already been revealed as shown in the picture below:
Emily’s message
1 1 1 00 1 000 1 00 1 1 0
1:32131221
1 000 1 0 1 0 1 0 1 0 1 0 1
1:1311111111111
1:3111111111111 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1
1:1311111111111 1 000 1 0 1 0 1 0 1 0 1 0 1
1:14131221 1 0000 1 000 1 00 1 1 0
Olivia’s message
0:14111313
1:15111411
1:1221113211
1:1311111411
0:141111411
Question
Jack’s secret message is shown below. What will Jack bring to the party?
Jack’s message
0:122123121
1:1311111111111 ?
1:133122111
1:1311111111111
0:1211111111121
Select one of the following options.
Answer
The answer is: c) CARD
Jack’s message
0:122123121
1:1311111111111
1:133122111
1:1311111111111
0:1211111111121
The first digit on each line of the code tells us the colour of the squares that line starts with.
0 means ‘white’ and 1 means ‘blue’.
The numbers on each line of the code after the colon (:) tell us how many squares of each alternating
colour will follow.
The first line of Jack’s message begins with a white square (0). The first digit after the colon shows the
number of squares for the starting color (which is one for ‘white’). Then we have two blue squares that
are followed by two white, one blue and so on.
The first row of the code makes following decoded colour pattern:
0:122123121
first square white : 1w 2b 2w 1b 2w 3b 1w 2b 1w
The second row of the code makes following decoded colour pattern:
1:1311111111111
first square blue : 1b 3w 1b 1w 1b 1w 1b 1w 1b 1w 1b 1w 1b
This task can be solved if these steps are repeated for the remaining three lines.
21
This question comes from Years 3+4
Switzerland Years 5+6
Years 7+8 Medium
At the Castle
Years 9+10
Years 11+12
A smart beaver needs a fir tree to build a dam on a river. But he only has one carrot .
At the Castle there is a trade today and exchange is possible.
The beaver goes there with his carrot and hopes to exchange it for a fir tree .
In each room two exchanges are allowed according to the following picture:
or or or or or or
A B C D E F
or or or or or or
C D E F G H
Question
What is the sequence of rooms the beaver has to go in, to ensure that he will eventually get a fir tree ?
Answer
The answer is: a) DGE
In Room D, the beaver exchanges his carrot for an ice block. After that he moves to Room G to
exchange the ice block for a ring. Finally, the beaver goes to Room E to exchange the ring for the
fir tree.
You can visualise the trading with the following directional graph. Each vertice (item) is connected with
an edge (a line) marked with the room where the item can be traded in the direction of the arrow.
G
B
F C
F E
D
C
E
A
A
B G,H
D
H
23
This question comes from Years 3+4
Germany Years 5+6
Years 7+8 Medium
Flowerbox
Years 9+10
Years 11+12
Ibbi has a new flowerbox, which can hold an arrangement of 3x3 flowers. He has three types of flowers:
Question
Drag the flowers into the spaces below to create a flowerbox arrangement with the
highest possible score.
Flowerbox – continued
Years 9+10
Years 11+12
Answer
The answer is: 32
An arrangement that scores 32 is the highest possible score. Ibbi assigns points to pairs of flowers that
are next to each other in the flowerbox arrangement. In the image, these points are shown as the
lines connecting the ‘next-to-pairs’. The flowerbox arrangement with the highest possible score should
have as many next-to-pairs of pink and yellow flowers as possible. However, at least one orange flower
must appear. In order to help with the
score, this orange flower must be part
of next-to-pairs with yellow flowers –
but as few as possible.
Therefore, the only orange flower
must be put into a corner, where it
will only be part of two next‑to‑pairs.
It does not matter which corner to
begin with; so there are four correct
solutions. In all other positions, the
orange flower would be next to more
than two other flowers. In order to
achieve at least a few points, yellow
flowers must be put next to the
orange flower. From then on, put pink
and yellow flowers next to each other
in order to achieve the highest score.
See one example of this process
with the orange flower in the lower
right corner:
25
This question comes from Years 3+4
Slovenia Years 5+6
Years 7+8 Medium
Bakery on Wheels
Years 9+10
Years 11+12
Beaver Bartosz is an
employee of the Bakery on
Wheels. He is responsible 13
for delivering bread to
customers’ houses.
He wants to travel as little
as possible. Therefore, 47
Bartosz decides to look at
the map of the customers’
houses and find a route 24
that will take him to each
9
house only once, and will
not double back through
the same street more than 18
once. He must also start 4
and end his journey at the 33
blue dot on the map.
55
2
Question
In which order should Bartosz deliver the bread to the houses?
Select from one of the following options.
A) 13,47,18,55,24,9,33,2,4 B) 4,9,33,2,55,18,47,13,9,4
C) 13,9,24,47,18,55,2,33,4 D) 4,2,55,18,47,13,24,9,4
Answer
The answer is: A) 13, 47, 18, 55, 24, 9, 33, 2, 4
In B) 4, 9, 33, 2, 55, 18, 47, 13, 9, 4 there is no 24 and the 9 and 4 repeat twice.
In C) 13, 9, 24, 47, 18, 55, 2, 33, 4 there is no road between 24 and 47 or 33 and 4.
In D) 4, 2, 55, 18, 47, 13, 24, 9, 4 there is no 33 and 4 repeats twice.
26
This question comes from Years 3+4
India Years 5+6
Years 7+8 Medium
Example
If you land on square 21, the snake will take
you back down to square 5.
If you land on square 23, the ladder will take
you up to square 36.
Question
If you are on square 19, what is the minimum number of dice rolls you need to win?
Select from one of the following options.
2 3 4 5
Answer
The answer is: B) 3
Decide-uous Trees
Years 9+10
Years 11+12
A hungry, but picky beaver wants to eat from some fruit trees. He will not eat from every tree.
Instead, he uses the flowchart below to help him choose from which trees to eat.
Do not Do not
Eat Eat
Eat Eat
A B C D E F
Question
From which trees will the beaver eat?
Select from one of the following options.
Answer
The answer is: A) BCEF
The answer is reached by looking at each tree in turn and deciding whether the beaver should eat from
it or not. The decision is reached by answering the questions in the rectangular text boxes (nodes) in
the flowchart starting from the top until the final solution in a circle is reached. For each question,
there are exactly two answer options, (1) true or (2) false. The chosen answer option leads either to
another question in a rectangular text box (node) or to the final solution in a circle.
For example, tree A is not leaning to the right, doesn’t have apples on it and has more than three fruits,
so the beaver won’t eat from it.
Do not Do not
Eat Eat
Eat Eat
Important note:
We do not know at what time precisely these phone calls were made, and also not in what order –
except that the second call each neighbour makes must comes after the first call by that same person.
Question
Only one of the following statements is certain to be correct on Saturday, whatever the order the
phone calls were made in. Which one?
Select one of the following options.
Answer
The answer is: B) Maryam’s cake is at least 1cm shorter than Clara’s cake.
• Answer A) Niamh’s and Maryam’s cakes are the same height is not correct.
• If Maryam happens to make all her calls after Niamh, then Niamh will end up with a cake of 3cm,
and Maryam with one of 4cm.
• This also proves that answer D) All three cakes are at least 4cm tall is not correct.
• Answer C) Clara’s cake is exactly 2cm taller than Niamh’s cake is not correct.
If Clara makes all her calls first, and then Maryam and then Niamh, Clara’s cake will be 5cm tall,
Maryam’s cake 4cm and Niamh’s also 4cm.
If you look at Maryam’s instructions to the baker, you see that at some point in the afternoon the baker
will have written down a height of 3cm, a height of 5cm and a height of 4cm for Maryam’s cake.
As a consequence, for Niamh’s cake the only heights the baker could have written down are also 3cm,
4cm or 5cm.
This means that on Saturday, Clara’s cake will be 5cm, 6cm or 7cm tall. Maryam’s cake will always be
4cm tall. So the answer B) Maryam’s cake is at least 1cm shorter than Clara’s cake is correct.
32
This question comes from Years 3+4
Japan Years 5+6
Years 7+8 Hard
Household Appliances
Years 9+10
Years 11+12
Question
Which is the correct sequence of switches to use to turn on only the TV and coffee machine?
Select one of the following options.
Answer
The answer is: D) B, D, C, E
When you press Switch B, the laptop, washing machine, and coffee machine are turned on.
Next, when you press Switch D, the washing machine is turned off, and the TV is turned on.
Then, when you press Switch C, the laptop and TV are turned off, and the vacuum cleaner is turned on.
And lastly, when you press Switch E, the TV is turned on and the vacuum cleaner is turned off.
Continued on next page
33
This question comes from Years 3+4
Japan Years 5+6
Years 7+8 Hard
At this point, the TV and coffee machine are on, whereas all the other appliances are now off.
A simple way to see that this is the correct answer while the others are not is to look at each switch
and appliance independently. Then we see that if a power outlet’s switch is pressed an odd number
of times, the connected appliances are left in the “on” state, while an even number of presses leaves
the appliances in the “off” state. The same holds true for a single appliance: if the number of switches
pressed and connected to it is even, then the appliance will be turned off, but if it is odd, the appliance
will be turned on.
This gives the following analysis:
• For the first sequence A) E, C, B, A we see for example that the vacuum cleaner is connected to three
of the pressed switches (E, C, A). Hence, the vacuum cleaner will remain “on”, which was not desired.
• For the second sequence B) C, B, A, D we see that the coffee machine is only connected to two of the
pressed switches (B, A), which means that it will remain “off”, again not desired.
• Finally, for the third sequence C) D, A, E, C we have for example the washing machine being
connected to only one of the switches (D), which means that it will stay “on”, which was not desired.
• In fact, in this case all appliances except the TV will be on.
The same reasoning holds of course also for the correct solution D) B, D, C, E where we have the
following number of presses for the appliances:
• Laptop: two (B, C) => off
• Washing machine: two (B, D) => off
• TV: three (D, C, E) => on
• Coffee machine: one (B) => on
• Vacuum cleaner: two (C, E) => off
34
This question comes from Years 3+4
Uzbekistan Years 5+6
Years 7+8 Hard
Beaverburg Delivery
Years 9+10
Years 11+12
Question
Beaverland Delivery needs to move sand from Island A to Island B.
Which route should the truck take so that it can move the largest amount of sand?
Answer
The answer is:
The maximum gross mass of a truck that could go from Island A to Island B is 32 tonnes, taking the
above route.
To compute the answer, one approach is to try a heavy weight, see which bridges could be used, then
reduce the weight until enough bridges allow passage to reach Island B.
We can start by using the heaviest weight that at least one bridge can sustain: 43 tonnes.
Only one bridge can sustain this weight, and if we select it this is not enough to form a path from
Island A to Island B.
36
This question comes from Years 3+4
South Korea Years 5+6
Years 7+8 Hard
The wizard beaver has a magic box that melts 2 pieces of different colours from 3 basic jewellery shapes
Magic Box Rules for Jewellery Shapes Magic Box Rules for Jewellery Colours
1st Shape + 2nd Shape New Shape 1st Colour + 2nd Colour New Colour
Question
Which of the following peices CANNOT be made from the four pieces of jewellery shown below?
Answer
The answer is:
Black
C
A black trapezoid cannot be made from any of the combinations. It is possible to make jewellery in the
other shapes from the given pieces.
38
This question comes from Years 3+4
El Salvador Years 5+6
Years 7+8 Hard
Car Factory
Years 9+10
Years 11+12
A car factory is designing a new fleet of cars to be sold in the future. These cars vary in (a) colour,
(b) interior finish, (c) tyres, and (d) engine type.
The factory will assign a number from 0 to 624 to all possible combinations of car types. It will start by
assigning the number 0 to the car with features 0 0 0 0, which is the blue car with black leather, sport
tyres and a diesel engine.
Car 1 will be the car with features 0 0 0 1, which is the blue car with black leather, sport tyres and a
petrol engine.
Car 2 will be the car with features 0 0 0 2, while car 5 will be car with features 0 0 1 0.
Example
The car with features 2 0 1 4 will be the white car, with black leather, urban tyres and an electric engine.
This would be car number 259.
Question
What is the car number for a green car, with red deluxe interiors, deluxe tyres and a
natural‑gas engine?
Answer
The answer is: 623
The features that are listed have number 4 (Green), 4 (Red deluxe), 4 (Deluxe tyres), and 3 (natural
gas). Written contiguously, this is 4 4 4 3, which can be read as a base-5 number which, converted to a
decimal, is 623. This is the car number but how did we obtain this value?
We note from the example that each time they go up in in the specifications of the last option (the
engine type), you add 1 to the model number. More interesting is that going up in the specifications
makes us add not 1 to the car number (otherwise we would mix it up with a change in the engine type),
but 5. Why 5? Because there are only 5 valid options for the engine, and after that, any following car
number must have a change somewhere else – here, in the option for the tyres.
If we continue to think like this, we find that going up one level in the option for the interior will make
us add 25 to the car number. Why 25? Because there are 5 × 5 = 25 possible options for the other two
leftmost options. Similarly, choosing the next colour causes the car number to be incremented by
5 × 5 × 5 = 125.
We can just then count how many times each option was “upgraded” from the base option, and add
up, multiplied by the factors we have just discussed:
(Colour) 4 × 125 + (Interior) 4 × 25 + (Tyres) 4 × 5 + (Engine) 3 = 623
40
Bebras Challenge
2021 Round 2
Years 9+10
41
This question comes from Years 3+4
Russia Years 5+6
Years 7+8
Recover my Robot
Years 9+10 Easy
Years 11+12
Natasha lost her robot in a park. The park is a square which is made up
of a grid of 3 by 3 smaller squares.
The robot could have been lost in any of the nine squares.
Natasha can manually send a sequence of commands to the robot. She
can command it to move either one square UP, LEFT, RIGHT or DOWN.
If the robot is moving towards a wall, it won’t be able to go further and
stands still. The walls are drawn on the picture by a thick (green) line.
Natasha doesn’t know where the robot is.
Question
What is the shortest sequence of commands that she can send to the robot, so that it will be
guaranteed to finish in the square with a star?
Answer
The correct answer is: UP – RIGHT – UP – LEFT – LEFT
To confirm that the correct answer is UP – RIGHT – UP – LEFT – LEFT, we will test the sequence of
commands, starting from all the possible initial positions. After each step, we examine possible
positions for the robot, and finally, there should be only one possible position for the robot.
The images below show the possible locations for the robot after each command in the correct answer
is executed.
It is impossible to find a solution with 4 steps, because the square in the bottom right needs four
commands to move to the square (UP – UP – LEFT – LEFT or LEFT – LEFT – UP – UP). Given these exact
commands, a robot in the center square will not be able to move to the desired square.
Although the answers DOWN – LEFT – DOWN – LEFT – UP – UP and
RIGHT – UP – RIGHT – UP – LEFT – LEFT also move the robot the desired square, they require a longer
sequence of commands (6).
The answer RIGHT – UP – UP – LEFT – LEFT is incorrect since the robot will not reach the desired square
if it has been lost in the bottom left square.
Such a representation is what we call a finite automata. Given an initial state, we can execute a
sequence of commands to find out what will be the reached state. Such a sequence is what we call a
word. To summarise, you can execute a word on a finite automata, to go from one state to another
state. For this problem, we do not know the initial state. What we are searching for is a word to
execute so that to always reach the same final state, no matter what is the initial state. This is exactly
what is called a synchronising word. Executing a synchronising word ALWAYS lead to the same final
state, no matter the initial state.
43
This question comes from Years 3+4
Serbia Years 5+6
Years 7+8
Conveyor Belt
Years 9+10 Easy
Years 11+12
Beaver works in a factory. His job is to weigh watermelons for shipment to customers.
Each shipment has to be exactly 20kg. Watermelons are placed on a moving conveyor belt.
Beaver is between the conveyor belt and the scale. He takes each watermelon off the conveyor belt and
then places it on the scale.
Every time a new watermelon is placed on the scale, he checks the new total weight:
• If the total weight remains less than or equal to 20kg, he leaves the watermelons on the scale
• if the total weight exceeds 20kg, he takes the new watermelon off the scale and does not ship it.
Once the total weight on the scale is equal to 20kg, Beaver will ship the watermelons to the customer.
Question
Given the current state of the conveyor belt, how many watermelons will be shipped?
3 4 5 6
Answer
The correct answer is: 4
The first watermelon weighs 8kg, and is placed on the scale. Therefore the total weight on the scale
will be 8kg. The watermelons will be left on the scale.
Then he adds the next watermelon with a weight of 4kg. Now the total weight on the scale will be
12kg. The watermelons will be left on the scale.
The next watermelon is 9kg and will cause the total weight on the scale to be higher than 20kg.
The 9kg watermelon will be placed aside and not shipped. The weight of watermelons on the scale is
still 12kg.
The next fruit is 7kg making the new total on the scale 19kg. The watermelons will be left on the scale.
The next two fruits have a weight of 3kg and 5kg. Either of them will cause the total weight on the
scale to be higher than 20kg, and so they will both be discarded.
The next watermelon is 1kg. This make the total total weight 20kg. The 4 fruits on the scale (8kg, 4kg,
7kg, 1kg) will be shipped.
The remaining watermelon is 6kg, and will not be enough to create another shipment.
45
This question comes from Years 3+4
Ukraine Years 5+6
Years 7+8
Permutations
Years 9+10 Easy
Years 11+12
Three blue and three green cards are located in a row of 9 cells in the following initial order:
Performing an operation means moving some of the cards from one cell to another (at the same time).
The following two types of operation are allowed. Cells and cards are numbered from left to right:
• Operation 1: Cards 1 and 4 are moved three cells to their right.
This means that card 4 will move three cells to its right, and card 1 will move to the original cell of
card 4. But be careful! Note that empty cells do not count as cards when working out the positions
of the cards!
• Operation 2: Cards 1, 3 and 5 are moved two cells to their right in a similar manner.
You can do multiple operations one after another.
For example, starting from the initial sequence, doing “Operation 1; Operation 2” would result in
the following:
After Operation 1:
After Operation 2:
Question
Which group of operations, starting from the initial sequence of cards, will lead to the following
sequence of cards?
Permutations – continued
Years 9+10 Easy
Years 11+12
Answer
The correct answer is: Operation 1; Operation 1; Operation 2
The state of the cards after each operation is shown in the following images:
The correct answer could be found (and the incorrectness of all others verified) by applying each
sequence and checking the resulting state. One way to reduce the amount of work is to find a
condition that identifies a wrong sequence without having to apply it completely. For example, any
sequence that places a blue card in any of the three rightmost cells cannot lead to the required final
state. This is because both operations will only move cards to right and in the final state the blue cards
are in the middle three cells.
In the example, Operation 1 is followed by Operation 2. The example shows us that this results in a
blue card in cell 8. This means that any sequence that begins with “Operation 1; Operation 2” cannot be
correct, and so the first option must be wrong.
Applying Operation 2 first places blue cards in cells 5 and 6. We can quickly see that applying another
operation will place a blue card in either cell 7 or cell 8 (for Operation 1 or Operation 2, respectively).
This means that the second option cannot be correct either.
The difference between the third option and fourth option is in the final step, so we cannot avoid
testing those options fully.
47
This question comes from Years 3+4
Ireland Years 5+6
Years 7+8
Party Message
Years 9+10 Easy
Years 11+12
Beaver Ann and her friends use a special code to send notes to each other. Now Ann is preparing a
party and wants to use a secret message to send the entrance password to her friends:
Secret message:
1 1 1 0 0 1 0 0 1 1 1 0 1 0 1
1:321231111
0 0 1 0 1 1 0 0 0 0 1 0 1 0 1
0:2112411111
1 1 1 0 0 1 0 0 0 1 0 0 1 1 1
1:3213123
0 0 1 0 0 1 0 0 1 0 0 0 0 0 1 0:21212151
1 1 1 0 1 1 1 0 1 1 1 0 0 0 1 ?
Question
What will be the last line of the secret message?
Answer
Option 3 is the correct answer.
The first digit on each line of the message tells whether the corresponding line of the image starts
with a white square or a blue square (0 for white and 1 for blue). The digits after the “:” tell how many
squares of each alternating colour will follow.
The last line of the image begins with a blue square (1). The “:” is followed by a digit showing the
number of squares in the starting colour (3 for three blue squares). This is followed by 1 white followed
by 3 blues followed by 1 white and so on.
This means that the correct code is: 1 : 3 1 3 1 3 3 1
Option 1 can not be correct because it begins with “0:” means that the first square would be white. In
fact this line in the message would describe a line that is the exact opposite of what Ann wants.
Option 2 can not be correct because it would describe a line of the image identical to the first one:
after 3 blue squares and 1 white square there would be 2 white squares and so on.
Option 4 can not be correct because the last line of the image would start with 2 blue squares
49
This question comes from Years 3+4
Japan Years 5+6
Years 7+8
Glowing Panels
Years 9+10 Easy
Years 11+12
Answer
The correct answer is:
IN
OUT
If you select a route that passes every glowing panel twice and the others once, all of the panels will be
turned on. Below each of the paths has been checked, and panels are coloured red if they are stepped
two times.
a) b) c) d)
IN IN IN IN
Echo Cypher
Years 9+10 Medium
Years 11+12
Do you know how to add two letters? It’s easy: convert both letters to the number of their place in the
alphabet. Each letter’s number is given below.
The result of adding two letters is a letter whose position in the alphabet is a result of addition of
those numbers.
Thus, for A+A, we find 1+1 = 2, and 2 gives us B. Thus A+A = B.
A ↔ 1
+ A ↔ +1
= B ↔ =2
Similarly, A+B=C, and C+E=H.
If the resulting number is higher than the number of letters in the alphabet, we start counting again
from the beginning of the alphabet. Thus, Z+A = A, and Y+C = B.
Jaroslav uses this kind of addition to encrypt his notes. His process for encrypting is a simple one: first
he thinks up one number – he calls it ‘modus’. He writes one word and then writes the same word
below the first one but shifted to the right by a number of many positions equal to the modus.
For example, if the modus is 3, this process looks like:
R A B B I T
R A B B I T
He writes the result of the addition of the letters in the same column in a 3rd row. The text in the 3rd
row is the encrypted text.
Example: Taking a modus of 2, and applying the encryption to the word ‘BEAR’
B E A R
B E A R
B E C W A R
So the word ‘BEAR’ upon encryption with modus 2 becomes ‘BECWAR’.
Question
Jaroslav’s notes contain some encrypted text. The first 9 letters of the text are ACDGDQGPE. We don’t
know the modus for the encryption he used. We know that the start of the original text is one of the
four options given below. Which one is it?
Answer
The correct answer is ABBEYROAD.
We don’t know the modus but we know that the original word is shifted to the right a number of
positions equal to the modus. So the first several letters of both the original text and the encrypted text
must be the same. Using this to work out the possible options for the modus will enable us to narrow
down the answer.
If modus is 4 (or more), the first 4 letters of both the original and encrypted versions must be the same
so the original text must start with ACDG. There is no such option starting with ACDG. So the modus
cannot be greater than 3.
If modus is 3, the first 3 letters of both the original and encrypted versions must be the same. So the
original text must start with ACD. The only such option is ACDCMETALL. The 4th letter of the encrypted
text is G, which means the 4th letter of the original text must be F, as A + F = G. But ACDCMETALL has
the letter C in the fourth position. Thus, modus cannot be 3.
If modus is 2, the original text must start with AC. Options ACDCMETALL and ACCUMULATE meet these
requirements. The 3rd letter of the encrypted text is D, which means the 3rd letter of the original
text must be C as A + C = D. Then, only ACCUMULATE could be correct. But the 4th encrypted letter is
G, which means the 4th letter of the original text must be D, as G = C+D. But the 4th letter in option
ACCUMULATE is U. Thus, modus is not 2.
This means that modus must be 1.
Since the 2nd letter of the encrypted text is C, the 2nd letter of the original text must be B, as A+B = C.
Further, the 3rd letter of the encrypted text is D, meaning that the 3rd letter of the original text is B, as
B+B = D. The original text must start with ABB. Options ABBEYROAD and ABBREVIATE could be correct.
Now, we look at the 4th encrypted letter which is G. This tells us that the 4th letter of the original text
must be E, as B+E = G.
Thus, the correct answer is ABBEYROAD, and the 10th letter will be D.
A B B E Y R O A D
A B B E Y R O A D
A C D G D Q G P E D
Robot Parking
Years 9+10 Medium
Years 11+12
Question
What is the minimum number of robot actions needed to get the spider car onto the spider square?
9 11 13 15
Answer
The correct answer is 11.
The spider car can reach the spider square in 11 actions as shown:
First we need to create a way through this “L-shaped” barricade. This can be done using one action
as shown:
Now we need to create a way through this second “L-shaped” barricade. This can not be done using
one action (without blocking the exit). It needs at least two:
54
This question comes from Years 3+4
Thailand Years 5+6
Years 7+8
Beaver Meetings
Years 9+10 Medium
Years 11+12
Beaver Kim went to the market. While shopping, he met two other beavers there, Beaver 1 and Beaver
2. Beaver 1 and Beaver 2 also met two beavers at the market. How many beavers could have been at the
market so that Beaver Kim, Beaver 1 and Beaver 2 were able to meet two beavers each?
We can represent the beavers and the potential beavers they came into contact with at the market with
a graph, as shown below:
In the cases above, at least 4 beavers (left graphic) or 3 beavers (right graphic) were at the market.
The following week, Beaver Kim went to the market again and met three other beavers there. These
three beavers also met other beavers at the market. These beavers met two, five and five beavers
respectively.
Question
What is the smallest possible number of beavers that were present at the market?
5 6 7 8
Answer
The answer is 7 beavers, as shown in the graph below.
Counting only Beaver Kim and the beavers he met, i.e. Beaver 1, Beaver 2 and Beaver 3, we already have
4 beavers.
Let’s look at Beaver 1 next. Beaver 1 met 2 beavers. We need to calculate the smallest number
of beavers, so we have to assume that Beaver 1 met Beaver Kim and either Beaver 2 or Beaver 3.
The minimum number of beavers at the market would still be 4 at this point, since we can meet the
requirements of Beaver Kim and Beaver 1 with the 4 beavers we already have.
Now we look at Beaver 2 who met five beavers. We know that Beaver 2 met Beaver Kim and potentially
Beaver 1. If we assume that Beaver 2 met Beaver 1 and Beaver 3, there must have been at least two
additional beavers (Beaver 4 and Beaver 5) that Beaver 2 met. The minimum number of beavers at the
market thus increases to 6.
The total number cannot be 6, however. Because Beaver 1 only met 2 beavers, they could only have
met Kim and Beaver 2 and Beaver 3, since that would be 3 beavers that they met. Beaver 1 met either
Beaver 2 or Beaver 3, or neither of them. We assumed at the start that Beaver 1 met Beaver Kim and
Beaver 2, so they cannot have also met Beaver 3. In this case, Beaver 3 can have met Beaver Kim and
Beaver 2 as well as Beaver 4 and Beaver 5. In order to have met 5 beavers, however, Beaver 3 must have
met another beaver who is not in our list already, Beaver 6.
Including Beaver Kim, this gives us 7 total beavers at the market. The answer is at least 7.
The graph above with seven nodes can be used to help solve this problem and to prove that a solution
with seven beavers exists.
56
This question comes from Years 3+4
Taiwan Years 5+6
Years 7+8
Traffic Lights
Years 9+10 Medium
Years 11+12
There are traffic lights in every intersection in Beaver City. The following are two important details of
the traffic regulations:
P R T
3 2 4
Q S
6 7
School
Question
Based on the timers, if Little Beaver wants to walk to school without stopping for any red lights and
without crossing the same intersection twice, which route should he take?
P→R→T→SCHOOL P→Q→S→SCHOOL
P→R→S→SCHOOL P→Q→S→R→T→SCHOOL
Continued on next page
57
This question comes from Years 3+4
Taiwan Years 5+6
Years 7+8
Answer
The correct answer is P→R→S→SCHOOL.
We need to consider whether the light is green when Little Beaver arrives at an intersection. The timer at
P shows 3 seconds remaining before an west-east red light at the beginning. When Little Beaver arrives at
P, he has traveled 2 squares in 2 seconds. Therefore, the west-east light is still green and Little Beaver can
either cross the street or make a turn. When Little Beaver arrives at P, the timers look like this:
P Q R S T
Timer 1 4 10 5 2
West-East Light Green Red Green Green Green
North-South Light Red Green Red Red Red
Little Beaver can now either turn right to go to Q, or go straight to go to R. If he turns right, it will
take him 6 seconds to get to Q: 1 second to cross the P intersection plus 5 seconds to travel the
distance between P and Q. Since the north-south light at Q will turn red in 4 seconds, going to Q
is not an option since it will result in Little Beaver having to stop for a red light. Knowing that Little
Beaver cannot travel directly from P to Q without getting stuck at a red light, we can eliminate
P→Q→S→SCHOOL and P→Q→S→R→T→SCHOOL.
If instead, Little Beaver went straight ahead to R, it would take him 7 seconds to reach it and the timers
would look like this when he arrived:
P Q R S T
Timer 4 7 3 8 5
West-East Light Red Green Green Red Red
North-South Light Green Red Red Green Green
So Little Beaver would find a green light at R. Now he has once again a choice of going straight to
T or turning right to S. Since the timer at T is currently at 5 with a west-east red light and it would
only take him 4 seconds to get to that intersection, Little Beaver knows that he would arrive at T
and have to wait at a red light for 1 second, so going to T is not an option, which eliminates the
answer P→R→T→SCHOOL. On the other hand, it would take him 6 seconds to reach S, and since the
north‑south light is green and the timer shows 8, he would still find the light green by the time he
reaches S, and he would be able to turn left to get to school.
Therefore, the answer is: P→R→S→SCHOOL.
Squares
Years 9+10 Medium
Years 11+12
Question
What is the maximum number of beavers that can fit in the park and still make it possible for the
beavers to play the game? It must be possible for ALL beavers to be able to move to any other square in
the park by shuffling other beavers out of the way.
13 23 24 26
Squares – continued
Years 9+10 Medium
Years 11+12
Answer
The correct answer is 23.
The key to this problem is recognising that this situation is similar to one of the sliding tiles puzzles
found in toy shops. In those games all tiles can be moved to any position if only one is left empty.
There will be gridlock if all squares are full but you only need to have one empty square to allow all the
beavers to shuffle about. This immediately eliminates 26 as an answer.
However, in computing we must consider unusual circumstances when looking at problems. The two
squares at the top right behind the playhouse will trap any beavers on these squares if there is only
one empty square or only two empty squares. Even when there are two empty squares, the top
rightmost beaver can visit three squares (3 right top squares). Thus, it is not possible to play this game
with 24 beavers in the park.
60
This question comes from Years 3+4
Cyprus Years 5+6
Years 7+8
Question
Which of the following programs will allow the robot to plant all of the trees in the figure?
Answer
The correct answer is:
The robot will start from Repeat 4{Plant, Forward(2)} – this will plant the first 4 trees above it, leaving a
2m gap between each. Then it will turn right after executing Right(90)
It will repeat these commands for another 3 times according to Repeat 4, planting all 4 sides of the square.
Answer C will not work because the Forward(1) does not advance the robot the far enough to reach the
next tree.
Answers B and D will not work because they turn the robot Left(90), which turns it away from the field
if it is pointing in the direction of the arrow.
Secret Siblings
Years 9+10 Hard
Years 11+12
Wicw mx lvz co
l?
– Pnjt
Question
Using the same encryption system that Dave used, encode the message ‘eggs’.
(Hint: Make sure you encode the message ‘eggs’ and do not decrypt it!)
Answer
The correct answer is: ehiv
Decrypting coded messages requires searching for patterns and clues. The enigma code for a given
day was often solved by using cribs. Cribs are guessed words or phrases that you hope might appear.
At one point in the Second World War it was very helpful to the decoders at Bletchley Park that a
coded, formal weather forecast was produced at roughly the same time each day. This meant that
they could look for words like “wetter” – the German word for weather. In Dave’s message it quickly
becomes clear that Dave has signed his name.
Further analysis shows that the letters have been shifted in the alphabet like this:
• D +12 becomes P
• a +13 becomes n
• v +14 becomes j (after wrapping round)
• e +15 becomes t
Tracing back, we can see that the message starts with the correct letter and then each subsequent
letter is shifted by one additional position, giving us the decoded message as:
62
This question comes from Years 3+4
Germany Years 5+6
Years 7+8
Lost Car
Years 9+10 Hard
Years 11+12
Bad luck! An autonomous car did not return home but stayed somewhere in
the city.
Just before the battery died, the autonomous car found a parking place and sent
home the positions of some (but not all) of the objects close to the car which
were recognised by the sensor. Each object is represented by two values:
1. the angle (related to the 360°-sensor on top of the car; the angle 0° is in front
of the car – look at the picture) and
2. the distance of the object to the car’s sensor.
In the example below, the car records: [(0, 10), (90, 5), (180, 4)]
The lost car sent this representation of its physical environment: [(0, 5), (90, 4),
(180, 5), (270, 12)]
Question
Find the lost car on the map!
Answer
The red car (in the middle of the right side on the map) is the lost car.
The lost car has an object 5m in front of it, an object 4m away on its right side, an object 5m behind it
and an object with distance 12m away on its left side.
The grey car is not the lost car, because the objects on its right and left side are equally close.
The yellow car is not the lost car, because the object behind it (green circle) is much closer than the
object in front of it (grey block).
The blue car is not the lost car, because the object in front (green circle) is much closer than the object
behind (small black circle).
The red car is the lost car: the objects in front and behind are equally close, and the object on its right
side (grey block) is much closer than the object on its left side (blue car).
64
This question comes from Years 3+4
Romania Years 5+6
Years 7+8
Key Points
Years 9+10 Hard
Years 11+12
This is a Wi-Fi network in a small company that contains 14 intranet access points. In this network
some of the access points are called “key points”. This refers to access points which, once eliminated
(are broken), determine the loss of access to the intranet for other access points.
For example, access point XX-009 is a “key point”. If XX-009 was broken, XX-011 will no longer have
access to the intranet.
Question
Which access points are the “key points”?
Answer
The correct answer is: XX-002, XX-004, XX-005, XX-006, XX-007, XX-009, as shown in the diagram below.
Train Trip
Years 9+10 Hard
Years 11+12
Eight beaver families would like to go on a train trip. The train has a limited number of seats and limits
the weight of luggage in each carriage. The families’ data is presented in the following table:
Question
How many families can fit on the train if:
• every beaver must sit on their own seat,
• all members of the same family must sit in the same carriage,
• the luggage has to be in the same carriage as the family members, and
• the weight of the luggage has to be within the limits of each carriage?
Answer
The correct answer is 7.
There are 32 members in all the families combined, while the train has only 31 seats. Therefore it is not
possible for all 8 families to go on the train.
One of the options for 7 families to go on the train trip whilst meeting the constraints is:
• 1st carriage: family G – 6 beavers, 130 kg
• 2nd carriage: families A, C, E – 10 beavers, 200 kg
• 3rd carriage: families B, D, H – 13 beavers, 260 kg
66
Bebras Challenge
2021 Round 2
Years 11+12
This question comes from Years 3+4
Indonesia Years 5+6
Years 7+8
DNA Sequence
Years 9+10
Years 11+12 Easy
Question
Below are four DNA sequences of Vormi creatures. Which sequence cannot be generated from 3 gene
mutations if its initial DNA sequence was “GTATCG”?
Answer
The correct answer is “GGTAAAC” (Option D).
• Option A: substitution (T to C – GCATCG), substitution (T to A – GCAACG), substitution (C to
T – GCAATG)
• Option B: substitution (G to A – ATATCG), duplication (T – ATTATCG), duplication (C – ATTATCCG)
• Option C: substitution (T to A – GAATCG), substitution (C to G – GAATGG), substitution (G to
C – GAATGC)
• Option A, B and C require 3 steps of gene mutation, as shown above while option C needs to
undergo at least 4 steps: duplication (G, GGTATCG), duplication (A, GGTAATCG), substitution (T to
A, GGTAAACG), deletion (G, GGTAAAC)
68
This question comes from Years 3+4
India Years 5+6
Years 7+8
Dinner Table
Years 9+10
Years 11+12 Easy
Mat is hosting a dinner party for some beaver families. Mat has invited his friend Robert and two other
beaver families. Mama and Papa Jones with their son, Harry and their daughter, Rose and Mama and
Papa Gray with their daughters Lily and Daisy.
Mat has laid down some rules for the seating arrangement at the round dinner table to encourage the
beavers to start new conversations.
• Two female beavers cannot sit next to each other.
• Mama and Papa beavers in the same family cannot sit next to each other.
• Young beavers cannot sit next to their parents.
Question
Which of the following is a correct seating arrangement according to Mat’s rules?
Answer
The correct answer is B.
In option A, Mama Gray and Papa Gray are seated next to each other which breaks rule #2. Daisy is also
seated next to her father, Papa Gray which breaks rule #3.
In option C, Lily is seated next to Papa Gray, her father, which breaks rule #3.
In option D, Daisy is seated next to Mama Jones which breaks rule #1. Rose is seated next to her father,
Papa Jones and Daisy is seated next to her father, Papa Gray which breaks rule #2.
All the rules (constraints) are satisfied by option B so that is the correct answer.
Passwords
Years 9+10
Years 11+12 Easy
Beavers make a set of passwords to secure their lodge. The passwords consist of only two symbols:
and
A password checker makes sure that a given password is acceptable.
Example
A checker:
S E
Question
The beavers come up the following password checker.
S E
From which set(s) of symbols can you create a password that the checker will accept? You must use all
of the symbols in the set to create a password.
Passwords – continued
Years 9+10
Years 11+12 Easy
Answer
71
This question comes from Years 3+4
Taiwan Years 5+6
Years 7+8
Flag Semaphore
Years 9+10
Years 11+12 Easy
Beavers in the town of Achi communicate by holding flags. They either hold the flags horizontally
or vertically.
P Q R S T
Beaver Adanma shows their friend the following combination of flag positions:
Question
Which of the letter combinations below did she send?
Answer
The correct answer is QPPTP.
The horizontal position can be encoded as 0
The vertical position can be encoded as 1
So a series of flag positions: vertical, horizontal, horizontal, vertical, horizontal, horizontal, vertical,
horizontal, can be encoded as 10010010. The letter P is encoded as 0, the letter Q is encoded as
1, the letter R is encoded as 10, the letter S is encoded as 001, and the letter T is encoded as 1001.
Therefore, only the option (D) is correct. 1(Q)0(P)0(P)1001(T)0(P). All the other options contain an error.
TSQ → 10010011 (error)
RPQR → 100100110 (error)
RPSP → 1000010 (error)
73
This question comes from Years 3+4
Lithuania Years 5+6
Years 7+8
Interpret Programs
Years 9+10
Years 11+12 Easy
The following commands will draw the triangles shown beneath them.
After the triangle has been drawn, the drawing tool returns to the starting point.
Question
Below there are four sets of commands:
1 2 3 4
draw (down, 2, 1) draw (down, 1, 2) draw (down, 2, 1) draw (down, 2, 1)
draw (up, 1, 2) draw (up, 2, 1) draw (up, 2, 1) draw (up, 1, 1)
Match each set of instructions to the picture it will draw.
A B C D
Answer
Command set 1 will draw option B.
First the “flat” triangle is drawn down, then the “thin” triangle is drawn up.
Command set 2 will draw option A.
First the “thin” triangle is drawn down, then the “flat” triangle is drawn up.
Command set 3 will draw option C.
It draws two “flat” triangles, one up and one down.
Command set 4 will draw option D.
First “flat” triangle is drawn down, then the smaller “thin” triangle is drawn up.
75
This question comes from Years 3+4
Ireland Years 5+6
Years 7+8
Mixed Results
Years 9+10
Years 11+12 Medium
Dr Beverley knows that exactly one of her 16 beaver patients is sick. Test tube distribution
She has a blood sample from each patient, but she only has 8 test tubes
A, B, C, D, E, F, G, and H. By mixing the blood from 16 patients into 8 test 0 ACEG
tubes, she knows she only needs to use 4 blood tests to find which of her
16 patients is sick. 1 ACEH
To find the sick beaver, she puts takes a blood sample from each of her
patients and places it into four different test tubes. She carefully follows the 2 ACFG
Test Tube Distribution plan. For example, beaver number 0 has their blood
put into test tubes A, C, E, and G 3 ACFH
Example: Where does the blood for beaver 0 go? ADEG
4
0 5 ADEH
6 ADFG
7 ADFH
8 BCEG
A C E G 9 BCEH
So far, Beverley has tested tubes A (infected), C (healthy), and E (healthy). 10 BCFG
She has only one test left.
Test results so far 11 BCFH
13 BDEH
Test tube C – healthy
14 BDFG
Test tube E – healthy BDFH
15
Question
Which of these 4 test tubes can Dr Beverley test to identify the sick beaver?
Answer
A B C D E F G H
The correct answer is: Test tube H
0 Infected A
In the table above, for each patient the
four columns marked with an ‘X’ show 1 Healthy C
which test tubes have that patient’s 2 Healthy E
blood. Based on the results of each of the 3
three tests so far, the coloured shading
indicates which beavers are potentially 4
the sick patient. For an infected test tube, 5
all patients whose blood is in that test These two
6
tube are possibly the sick patient. For a beavers meet
healthy test tube, all patients whose blood 7 all conditions
is not in that test tube are possibly the 8
sick patient. On the basis of the tests so
far, therefore, either beaver patient 6 or 9
beaver patient 7 is ill. Patient 6’s blood 10
is in tube G, and patient 7’s is in tube 11
H. Since we know exactly one patient is
sick, testing G or H (whether we get an 12
infected or healthy result) will allow us 13
to determine which of the two patients
14
is sick. G is not one of the options given,
therefore the correct answer must be H. 15
77
This question comes from Years 3+4
Italy Years 5+6
Years 7+8
Production Units
Years 9+10
Years 11+12 Medium
A factory produces several kinds of products. Each product undergoes a series of processes before
it is finished. These processes occur in different units. All production processes at the factory are
summarised in a diagram, where a square represents a unit ( ), and an arrow ( ) represents the
flow of a product from one unit to the next.
There are two types of units: production and packaging units. The rules that are used to set up the
factory are as follows:
• From each production unit, products can be sent to two other units at most ( ).
• From the packaging unit, products are sent out of the factory. This unit is shown with no outgoing
arrow, only a receiving arrow (i.e. ).
• The name of the unit where all production starts is called Unit 1. There is only one such unit.
• Every unit apart from Unit 1 must recieve products from exactly one other unit.
Question
Which one of the following diagrams shows the factory’s production processes correctly?
Answer
The correct answer is :
The leftmost unit is Unit 1; each unit receives products from only one unit;
the packaging units are those without outgoing arrows; the other units send
products to either one or two other units;
is not correct because there is a unit that receive products from multiple
units, which violates the rules that were used to set up the factory.
Additionally, there is one unit that sends products out to three other units,
which also violates the rules.
is not correct because there are multiple units that could be Unit 1, which is
where all production starts and has no input arrows. This is in violation of the
rule indicating that only one unit can act as Unit 1.
is not correct because there are squares with more than 2 outgoing arrows –
specifically Unit 1, which sends products out to 3 different units. This violates
the rules of the factory.
is not correct because there is a unit on the upper line that receives products
from more than one other unit, which is in violation of the rules.
79
This question comes from Years 3+4
Thailand Years 5+6
Years 7+8
Three Workers
Years 9+10
Years 11+12 Medium
Question
Which of the weekly schedules below can be achieved with these rules?
A B
Monday Tuesday Wednesday Thusday Friday Monday Tuesday Wednesday Thusday Friday
2 3 1 1 2 2 1 3 2 1
C D
Monday Tuesday Wednesday Thusday Friday Monday Tuesday Wednesday Thusday Friday
2 1 3 1 0 2 1 0 3 2
Answer
We can model the schedule by using letters to represent the workers – A for Alice, B for Buddy, and C
for Catherine. We can start by checking which two workers can work on Monday. Given the 3 options,
possible teams of 2 are A-B, A-C and B-C. We can exclude A-B, because Rule 2 would require that C is
working as well and there must be 2 workers on a Monday, not 3.
So we start the week with either A-C or B-C:
Case 1:
Monday Tuesday Wednesday Thursday Friday
At work A-C ? ? ? ?
At home B B ? ? ?
Case 2:
Monday Tuesday Wednesday Thursday Friday
At work B-C ? ? ? ?
At home A C A ? ?
In Case 1, B is not allowed to work on Tuesday per Rule 1. In Case 2, C is not allowed to work on Tuesday
per Rule 2. In both cases, it is impossible to have 3 people working on Tuesday. This excludes answer a).
Case 2 also shows an application of Rule 3: A stays at home the day after C stays at home. So if there is
a day where no one is working, all 3 workers cannot work the next day as we can be sure that A will be
at home. This excludes answer d).
Answer b) works only until Wednesday: we can start as per Case 1 with A-C working. C can then work
on Tuesday and everyone can work on Wednesday. So until Wednesday, the only solution would be:
81
This question comes from Years 3+4
Taiwan Years 5+6
Years 7+8
Decryption Map
Years 9+10
Years 11+12 Medium
A beaver signed up to play a map game. During the game, all the roads between cities were treated as
one-way roads, but players were not given a map. Instead, they were given the table below.
End
Start
A B C D E F
Question
Which of the following statements is true?
Answer
The answer is: The beaver needs to use at least three one-way roads to get from City A to City D.
We can create the map showing one-way roads between cities as shown above. Now consider each of
the given answers:
• The beaver can travel from City C to City A to City B using a total of only two roads. So this statement
is false.
• From City A, the beaver can only go to City B and then only to City C. This means the beaver must
use at least one more road to reach D, for a total of at least three roads. So this statement is true.
• The beaver can travel from City A to City B to City C using a total of only two roads. So this statement
is false.
• The beaver can travel from City B to City C to City E using a total of only two roads. So this statement
is false.
83
This question comes from Years 3+4
the United States Years 5+6
Years 7+8
Coin Collector
Years 9+10
Years 11+12 Medium
Alice wants to play a game with her friend. She has made
several paths in the woods with large stones along the
way. At each stone, Alice has placed a bag of gold coins.
The number of coins in each bag is anywhere between 1 2 3 4 5 6
1 and 6. Alice’s friend wants to collect as many gold coins.
He starts at the stone marked with an ’S’. At every stone, he 6
is allowed to choose either the stone at the left path or the
stone on the right path. He then moves to the stone that he
has chosen and collects the coins. 6
Every time Alice’s friend wants to select a stone, he is 6
able to see how many coins are in the bag at each of the
two stones. He came up with a greedy strategy to always
choose the stone with more coins. Alice wants to teach her S
friend that his strategy does not always lead to getting the 6
most coins.
6
Below is a map of the paths that Alice has made.
Question 6
Place the coins so that her friend’s strategy will not result in
them getting the highest number of coins. Note that there
are multiple correct solutions.
Answer
There are many solutions to this problem. One way of looking at this is to force Alice’s friend to make
a wrong choice at the first decision. By making the first choice between ‘1’ and ‘2’, we can be sure that
the friend will choose ‘2’ because of his greedy strategy. Now, by putting the remaining bags with the
highest numbers (5 and 6) behind the ‘1’ choice, and putting the remaining low valued pouches (3 and
4) behind the ‘2’ choice, we can force them to select 2 and then 4 coins, giving them a total of 6.
Had Alice’s friend followed a different path, selecting the lowest number of coins first (1) and then the
highest number of coins (6), they would have finished with 7 coins.
84
This question comes from Years 3+4
Germany Years 5+6
Years 7+8
MathMachine
Years 9+10
Years 11+12 Hard
A group of beavers have created a MathMachine. It takes a number as input and returns another
number as output. Inside, the MathMachine uses components. All components work in the same way.
Each component takes three numbers as input, and processes them following these rules:
• If the first number is 1, return the third number to the MathMachine as output.
• Else:
• Decrease the first number by 1. The result is the new first number.
• Increase the second number by 2. The result is the new second number.
• Add the new second number and the third number. The result is the new third number.
• Pass the new numbers to the next component, in the same order.
When the MathMachine receives an input, it passes this number to the first component as the
first number.
The other second and third numbers entered into this component are 1.
As soon as the MathMachine receives the output of any component, it returns this number as result.
The image below shows how the MathMachine processes the input 2, using two components in
this case.
Question
The MathMachine processes the input 4. Which number does the MathMachine return as output?
7 10 16 64
MathMachine – continued
Years 9+10
Years 11+12 Hard
Answer
16 is the correct answer, as shown by the process in the table below:
86
This question comes from Years 3+4
China Years 5+6
Years 7+8
A car factory has received five part orders. These five parts need to be processed, first being produced
in workshop A before being painted and polished in workshop B. You need to order the parts so that
the work is completed as quickly as possible.
The processing time for the five parts in the two workshops is as follows:
In the example above, if parts are processed in the sequence 1-2-3-4-5, the total time will be 42 hours.
Question
What is the minimum time needed to fully process all 5 parts?
33 34 36 40
Answer
The correct answer is 34.
The part processing queue can be formed as follows:
First, select the part with the least processing time in either workshop. If this part’s shortest time is in
workshop A, we put the part in the first available space in the queue. If the part’s shortest time is in
workshop B, put the part in the last available space in the queue.
We repeat this operation until the entire queue is formed. The sequence of queuing will be as follows:
The start time of a part in workshop B is the maximum of the completion time of that part in workshop
A and the completion time of the previous part in workshop B.
Product code 1 5 4 2 3
Completion time in workshop A 3 13 20 25 33
Completion time in workshop B 9 22 26 28 34
88
This question comes from Years 3+4
Russia Years 5+6
Years 7+8
Squirrel Prison
Years 9+10
Years 11+12 Hard
Two brothers live at a monastery where they are trying to practice silence, but still wish to
communicate. They worked out a way to “talk” to each other using the 6 slices of bread they each
receive at lunch time. Each brother arranges his bread on the table in anywhere from 1 to 6 piles.
They always use all 6 slices of bread. The arrangement of piles represents the word they wants
to communicate.
For example, the word “hello” might be communicated by arranging the bread as shown:
Question
How many different words can the brothers communicate using this system?
Answer
The answer is 32.
Each brother has 6 slices of bread. Consider the following method of arranging them:
• Place the first slice on the table.
• Flip a coin.
• If “heads”, place the next slice on top.
• If “tails”, start a new pile.
• Continue to flip coins until all the slices are arranged.
Every possible arrangement of bread can be achieved by following this method.
The example message, , would be the result of flipping tails, heads, tails, heads, heads.
Since five coin flips are needed to arrange all 6 slices of bread, and each coin flip has two possible
outcomes, there are 25 = 32 different ways to arrange the bread.
The brothers can use their bread to communicate 32 different words.
89
This question comes from Years 3+4
Romania Years 5+6
Years 7+8
Telegraph Networks
Years 9+10
Years 11+12 Hard
An international data network is shown in the figure below. Each network has nodes (shown as circles)
of the same colour. Nodes with two different colours indicate connections between different networks.
There is a roaming charge in the connections, so if a message is transmitted from one network to
another network, the cost of the transmission is:
(the cost of the path inside the first network) + (the cost of the path through all other networks x2)
Each branch of the network has its own cost, as shown in the graph.
Example:
7
A D
2 13 5 F
2
4
B C E
5 3
The cheapest path to transfer information from A to F is 21:
2+5+(3+4)*2=21
Question
Using these rules, what is the minimum cost to send a message from point A to point Q,
as shown below? Enter your answer as an integer.
4 4
F G L
A 6
6 25
J I 5
45 25
2 25
H
K 3
D 4
B 35
45
3 N M
12
E 14 3
6 2
2 P Q
O 14
C
Continued on next page
90
This question comes from Years 3+4
Romania Years 5+6
Years 7+8
Answer
The correct answer is: 93
4 4
F G L
A 6
6 25
J I 5
45 25
2 25
H
K 3
D 4
B 35
45
3 N M
12
E 14 3
6 2
2 P Q
O 14
C
The shortest route is not always the minimum cost path. In order to cross the green network, going to
the violet network the minimum cost is 5, But from node E, crossing to N,K,M to Q, or N,O,P,M, to Q,
the costs are higher than crossing from D,F,G,L,H,M to Q.
Then:
Path: A,D,F,G,L,H,M,Q=45 + (6 + 4 + 4 + 5 + 3 + 2) * 2 = 93
Path: A,B,E,N,K,M,Q=(2 + 3) + (12 + 4 + 35 + 2) * 2 = 111
Path: A,B,E,N,O,P,M,Q=(2 + 3) + (12 + 14 + 14 + 3 + 2) * 2 = 95
91
This question comes from Years 3+4
Belgium Years 5+6
Years 7+8
Flipping Cards
Years 9+10
Years 11+12 Hard
We play the following ‘game’. A row of cards is laid out in front of you.
Question
If you start the game with 7 cards lying face down:
How many steps will it take before you first encounter the sequence given below
(with all 7 cards facing up)?
You can never reach the situation with all 7 cards facing up
Answer
There are various way to see (or guess) that this
is the correct answer. If you perform the first few
steps you will see the following patterns.
Notice that the rightmost card is first turned
face‑up at the 1st step, the second card from the
right is first turned face-up at the 2nd step, the
third card from the right is first turned over at the
4th step and the fourth card from the right is first
turned face-up at the 8th step.
Looking at this sequence of numbers, we can see
that every number in the sequence is double the
number that preceeds it. So you can guess that
it will take 16 steps before the 5th card from the
right is turned over, 32 steps for the 6th card and
64 steps for the 7th card. (And the 7th card from
the right is the first from the left.) So we need
at least 64 steps.
It is a little bit more difficult to see that we need
127 steps to turn all cards facing up. For that,
we need to realise that just one step before the
4th card is turned over (on step 7) the pattern
contains 3 consecutive cards facing up. Similarly,
one step before the 5th card is first turned over
(on step 15) the pattern contains 4 consecutive
cards facing up. So, 7 cards facing up happens one
step before the 8th card would be turned over (if
there were 8 cards), which is at step 2x64-1 = 127.
93
We would like to thank the International Bebras Committee and community for their ongoing assistance, resources
and collaborative efforts. Special thanks to Eljakim Schrijvers, Alieke Stijf and Dave Oostendorp for their support and
technical expertise.
If you would like to contribute a question to the International Bebras community, please contact us via the details below.
Contact us
CSIRO Digital Careers
digitalcareers@csiro.au
digitalcareers.csiro.au