Sasta Shark Tank Codechef Solution

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

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

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