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…
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…
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…
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…
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…
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.…
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…
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…
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,…
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…
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.…
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…
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…