The 29th International Olympiad in Informatics was held in Tehran, Iran in 2017. There were two competition days, with 3 problems given to the competitors on each day. You can see the Wiring problem and solutions below.
The 29th International Olympiad in Informatics was held in Tehran, Iran in 2017. There were two competition days, with 3 problems given to the competitors on each day. You can see the Nowruz problem and solutions below.
Problem : A pointer in C is a way to share a memory address among different contexts (primarily functions). They are primarily used whenever a function needs to modify the content of a variable, of which it doesn’t have ownership. In order to access the
Problem : Functions are a bunch of statements glued together. A function is provided with zero or more arguments, and it executes the statements on it. Based on the return type, it either returns nothing (void) or something. A sample syntax for a function is For example, a
Problem : A for loop is a programming language statement which allows code to be repeatedly executed. The syntax for this is expression_1 is used for initializing variables which are generally used for controlling terminating flag for the loop.
Problem : if and else are two of the most frequently used conditionals in C/C++, and they enable you to execute zero or one conditional statement among many such dependent conditional statements. We use them in the following ways: 1. if: This executes the
Problem : Some C++ data types, their format specifiers, and their most common bit widths are as follows: Int (“%d”): 32 Bit integer Long (“%ld”): 64 bit integer Char (“%c”): Character type Float
1. Foregone Solution – Problem A Problem : Someone just won the Code Jam lottery, and we owe them N jamcoins! However, when we tried to print out an oversized check, we encountered a problem. The value of N, which is an integer, includes at least one
The official APIO 2019 problems and solutions in this post
Objective : In this challenge, we’re practicing reading input from stdin and printing output to stdout. Question : In C++, you can read a single whitespace-separated token of input using cin, and print output to stdout using cout. For example, let’s say
Objective : This is a simple challenge to help you practice printing to stdout. Question : We’re starting out by printing the most famous computing phrase of all time! In the editor below, use either printf or cout to print the string