Imagine you are given a long-term piece of homework. It is due in six months. You plan to complete some every day, where you finish right before the deadline. 2 months went by, and you haven’t even started working on it. You change everything where you complete everything in 4…
Chase
Arduino Light Project
To make an Arduino Light Project, you will need: 1 Arduino board 1 breadboard 15 wires 7 220 ohm resistors 7 Light Emitting Diodes Connect them all where the lights are side-by-side. Then, use the following code: This should create a lot of flashing lights.
Mouse Journey
Mouse Journey is a problem that is related to simple math. Read the problem first. The logic is simple: the total number of possibilities is the number of possibilities for the one above and the one to the left. The start is 1, and the cat areas are 0. Now,…
CCC ’03 S3 – Floor Plan
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…
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…
