## Cricket Ranking Codechef Solution

In a season, each player has three statistics: runs, wickets, and catches. Given the season stats of two players AA and BB, denoted by RR, WW, and CC respectively, the person who is better than the other … Read More

## COVID Pandemic and Long Queue Codechef Solution

Due to the COVID pandemic, people have been advised to stay at least 66 feet away from any other person. Now, people are lining up in a queue at the local shop … Read More

There are NN people on a street (numbered 1 through N). For simplicity, we’ll view them as points on a line. For each valid ii, the position of the i-th person is Xi. It turns out that exactly … Read More

## Coupon System Codechef Solution

Chef is organizing an exam for certifying algorithmic skills. The exam will consist of three levels: 1, 2 and 3, and will be organized at various cities numbered from 1 … Read More

## Cops and the Thief Devu Codechef Solution

There are 100 houses located on a straight line. The first house is numbered 1 and the last one is numbered 100. Some M houses out of these 100 are occupied by cops. … Read More

## Bear and Milky Cookies Codechef Solution

Limak is a little polar bear, who loves eating cookies and drinking milk. For this reason he often visits Chef’s kitchen. Limak is going to spend N minutes in the kitchen. Each … Read More

## Coin Flip Codechef Solution

Little Elephant was fond of inventing new games. After a lot of research, Little Elephant came to know that most of the animals in the forest were showing less interest to … Read More

## Compilers and parsers Codechef Solution

Lira is now very keen on compiler development. 🙂 She knows that one of the most important components of a compiler, is its parser. A parser is, in simple terms, … Read More

## The Morning Commute Codechef Solution

The Chef commutes to work every day using the city’s underground metro. The schedule for the trains has recently been changed and he wants to know how long it will … Read More

## Three Way Communications Codechef Solution

The Chef likes to stay in touch with his staff. So, the Chef, the head server, and the sous-chef all carry two-way transceivers so they can stay in constant contact. … Read More

## College Life 5 Codechef Solution

There is only 1 TV in the common room, and as luck would have it, both the El Clasico football match and the India-Pakistan cricket match are happening simultaneously. There is one … Read More

## College Life 4 Codechef Solution

Chef and N−1 more of his friends go to the night canteen. The canteen serves only three items (well, they serve more, but only these three are edible!), which are omelette, chocolate … Read More