Primality Test | Codechef solution

Primality Test | Codechef solution Problem:- Alice and Bob are meeting after a long time. As usual they love to play some math games. This times Alice takes the call … Read More

Sum OR Difference | Codechef solution

Sum OR Difference | Codechef solution Problem:- Write a program to take two numbers as input and print their difference if the first number is greater than the second number  … Read More

The Block Game | Codechef solution

The Block Game | Codechef solution Problem:- The citizens of Byteland regularly play a game. They have blocks each denoting some integer from 0 to 9. These are arranged together … Read More

Decrement OR Increment | Codechef solution

Problem of Decrement OR Increment | Codechef solution:- Write a program to obtain a number N N and increment its value by 1 if the number is divisible by 4 otherwise otherwise … Read More

Smallest Numbers of Notes | Codechef solution

Problem of Smallest Numbers of Notes | Codechef solution:- Consider a currency system in which there are notes of six denominations, namely, Rs. 1, Rs. 2, Rs. 5, Rs. 10, … Read More

Mahasena | Codechef solution

Problem of Mahasena | Codechef solution:- Kattapa, as you all know was one of the greatest warriors of his time. The kingdom of Maahishmati had never lost a battle under … Read More

Valid Triangles | Codechef solution

Problem of Valid Triangles | Codechef solution:- Write a program to check whether a triangle is valid or not, when the three angles of the triangle are the inputs. A … Read More

Chef and Remissness | Codechef solution

Problem of Chef and Remissness | Codechef solution:- The office where the Chef works, has two guards who count how many times a person enters into the office building. Though the … Read More

Helping Chef | Codechef solution

Problem of Helping Chef | Codechef solution:- Write a program, which takes an integer N and if the number is less than 10 then display “Thanks for helping Chef!” otherwise print “-1”. … Read More