Sasta Shark Tank Codechef Solution

Sasta Shark Tank Codechef Solution Devendra just had a million-dollar idea and he needs funds to startup. He was recently invited to Sasta Shark Tank (A TV show where entrepreneurs pitch their ideas to investors hoping to get investment in return). He was offered deals from two investors. The first investor offers A dollars for … Read more

Speed Limit Test Solution Codechef

Speed Limit Test Solution Codechef Alice is driving from her home to her office which is A kilometers away and will take her X hours to reach.Bob is driving from his home to his office which is B kilometers away and will take him Y hours to reach. Determine who is driving faster, else, if … Read more

Bob at the Bank Solution Codechef

Bob at the Bank Solution Codechef Bob has an account in the Bobby Bank. His current account balance is W rupees. Each month, the office in which Bob works deposits a fixed amount of X rupees to his account. Y rupees is deducted from Bob’s account each month as bank charges. Find his final account … Read more

Insurance Solution Codechef

Insurance Solution Codechef Chef bought car insurance. The policy of the insurance is: Chef’s car meets an accident and required RsÂ YÂ lakhs for repairing. Determine the amount that will be rebated by the insurance company. Input Format Output Format For each test case, output the amount (in lakhs) that will be rebated by the insurance company. … Read more

Game of Piles Version 1 Solution Codechef

Game of Piles Version 1 Solution Codechef There areÂ NÂ piles where theÂ ithÂ pile consists ofÂ AiÂ stones. Chef and Chefina are playing a game taking alternate turns withÂ Chef starting first. In his/her turn, a player can choose any non-empty pile and removeÂ exactlyÂ 1Â stone from it. The game ends whenÂ exactlyÂ 1Â pile becomes empty. The player who made the last move wins. Determine … Read more