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,…
Uncategorized
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…
Shang-Chi and the Legend of the Ten Rings
Shang-Chi and the Legend of the Ten Rings is one of the latest movies released by Marvel Studios. The film starts by explaining what the Ten Rings are, and who possessed them, Wenwu. The Ten Rings gave the possessor power and eternal life. Nobody knew how he got the rings….
Why do People Sneeze?
People sneeze when there are a certain number of irritants in the person’s throat or nose. Many people often sneexe multiple times before stopping, because one sneeze wouldn’t be enough to get rid of all the dust particles. So, another sneeze occures. Reasearchers aren’t exactly sure, but that is what…
C++ atoi()
In C++, the function atoi() is designed to convert characters to integers. If a character is named n, all that is needed to convert it to an integer is: In other words, the atoi function wraps around the character and changes it to an integer.
Initial Value
Initial value for variables is very important in C++. If a variable is in the wrong scope, errors can appear, or it won’t give the expected outcome. For example, if a variable is declared in a for loop, and it is used in a function, the announced variable will not…
CCC ’18 J4 (S2)
Matrices are among an important group in coding problems. Matrix rotations are also vital. For instance, QR codes can be read even when it is rotated 90°. Take the coding problem below as an example: https://dmoj.ca/problem/ccc18s2 This is a matrix problem. At first glance, people might thnk that the data…
