Sun. Jul 3rd, 2022

#### Primality Test Codechef Solution

Alice and Bob are meeting after a long time. As usual they love to play some math games. This times Alice takes the call and decides the game. The game…

#### Sums in a Triangle Codechef Solution

Let’s consider a triangle of numbers in which a number appears in the first line, two numbers appear in the second line, three in the third line, etc. Develop a…

#### Lapindromes Codechef Solution

Lapindrome is defined as a string which when split in the middle, gives two halves having the same characters and same frequency of each character. If there are odd number…

#### Gross Salary Codechef Solution

In a company an emplopyee is paid as under: If his basic salary is less than Rs. 1500, then HRA = 10% of base salary and DA = 90% of…

#### The Smallest Pair Codechef Solution

You are given a sequence a1, a2, …, aN. Find the smallest possible value of ai + aj, where 1 ≤ i < j ≤ N. Input The first line of the…

#### Ambiguous Permutations Codechef Solution

Some programming contest problems are really tricky: not only do they require a different output format from what you might have expected, but also the sample output does not show…

#### Cutting Recipes Codechef Solution

The chef has a recipe he wishes to use for his guests, but the recipe will make far more food than he can serve to the guests. The chef therefore…