Floor plan is a CCC senior 3 problem that is very confusing at first, and gradually becomes more understandable. IndexError is more common. Functions greatly aid to help make the code for the solution. First, make a function called findarea. This function, given a coordinate, will find the area of…
Chase
CCC ’00 S2 – Babbling Brooks
Babbling Brooks is an example of a problem that is good for functions. There could be two functions, one of them seperates and the other joins. There could be a simple part that isn’t in a function, but most of the work and ligic is into the functions. Sample solution…
CCC ’10 J5 – Knight Hop
Knight Hop is a Junior 5 level 7 point problem. A little bit of chess knowledge is very useful, as it requires a knight. Functions are also extremely helpful, especially if it determines the possible next moves given a set of points. First, create a function than takes in a…
CCC ’14 S3 – The Geneva Confection
https://dmoj.ca/problem/ccc14s3 The problem above is mainly based off logic. It really requires only a few if else statements, variables and loops. First, you need to create a loop that loops based of an integer input. Everything else will be in this loop. Create an empty list that is for the…
CCC ’14 S1/J4 – Party Invitation
https://dmoj.ca/problem/ccc14s1 This is a dmoj 5-point Junior 4 question. It is more complex than it seems. Read on to find the solution and the logic to it! First, read the question. Without knowing what the question is about, all the rest of this blog will be useless. First things first,…
Conjugate
Conjucates are very useful when it comes to simplifying fractions with an irrational denominater. A conjugate is where you change the signs between two terms. Take a look at the polynomial below: If you try to add this fraction to a rational fraction like 1/3, it will be very exhausting…
What’s The Big Deal With passwords?
Passwords are things that can block a hacker from going into your account. If you remember the passwords, only you would be able to access your account. This means that secure passwords are best, otherwise there would be basically no point of having one. Below is some of the most…
Unbound
Unbound is a novel in verse that is about slavery. It was written by Ann. E. Burg. In the beginning, Grace, a nine-year-old girl, was called to the Big House to do slave work. After a few weeks, she couldn’t stand the pressure anymore, and escaped, taking a big risk….
How did D-Day Ensure Victory for the Allies?
D-Day has been one of the most important days of war history. It started on June 6, 1944. Without it, it’s likely that World War 2 would have resulted in a German victory. However, this day creates a question that is very important. How did D-Day lead to victory for…
Why is Russia Invading Ukraine?
Russia had recently started invading Ukraine. This sudden news had made a lot of people research things they hadn’t really paid too much attention to before. The Russians’ relationship wasn’t good with the Ukrainians’, and held a grudge against them for almost a decade. Russia’s neighbor also wanted to be…
