## College Life 2 Codechef Solution

Chef has just started watching Game of Thrones, and he wants to first calculate the exact time (in minutes) that it’ll take him to complete the series. The series has SS seasons, … Read More

## Coder Life Matters Codechef Solution

Coders/programmers are the backbone of the new age society (though whether they themselves have a strong back bone is debatable :P). As some wise man said, a task stops being … Read More

## Summer Heat Codechef Solution

Chefland has 22 different types of coconut, type AA and type BB. Type AA contains only xaxa milliliters of coconut water and type BB contains only xbxb grams of coconut pulp. Chef’s nutritionist has advised him to consume XaXa milliliters of coconut water and XbXb grams of … Read More

## Chef Goes to the Cinema Codechef Solution

Chef lives in Chefcity. Chefcity can be represented as a straight line with Chef’s house at point 0 on this line. There is an infinite number of subway stations in … Read More

## Chef Judges a Competition Codechef Solution

Chef is the judge of a competition. There are two players participating in this competition — Alice and Bob. The competition consists of N races. For each i (1 ≤ i ≤ N), Alice finished the i-th race … Read More

## Chef and Notebooks Codechef Solution

Chef likes to write poetry. Today, he has decided to write a X pages long poetry, but unfortunately his notebook has only Y pages left in it. Thus he decided to buy a new … Read More

## Candy Love Codechef Solution

Sammy and Simmy love candies and frequently visit the local candy shop. Sammy and Simmy have bought NN candy packs. Packet ii contains AiAi candies. Sammy being the elder one is happy only if she has … Read More

## Compress the List Codechef Solution

You are given a strictly increasing sequence of integers A1,A2,…,ANA1,A2,…,AN. Your task is to compress this sequence. The compressed form of this sequence is a sequence of ranges separated by commas (characters ‘,’). … Read More

## Chocolate Monger Codechef Solution

There are nn chocolates, and you are given an array of nn numbers where the ii-th number AiAi is the flavour type of the ii-th chocolate. Sebrina wants to eat as many different types of chocolates as possible, … Read More

## Chef vs Doof Codechef Solution

Chef got into a fight with the evil Dr Doof. Dr Doof has decided to destroy all even numbers from the universe using his Evil-Destroy-inator. Chef has NN integers with him. To … Read More

## IPL and RCB Codechef Solution

It’s IPL time and as usual RCB are finding it tough to qualify for playoffs. RCB needs a minimum of XX more points to qualify for playoffs in their remaining YY matches. A win, … Read More

## Fibonacci String Codechef Solution

For a string SS let the unique set of characters that occur in it one or more times be CC. Consider a permutation of the elements of CC as (c1,c2,c3…)(c1,c2,c3…). Let f(c)f(c) be the number of times cc occurs in SS. … Read More