Fill the Bucket solution codechef – Chef has a bucket having a capacity of KK liters. It is already filled with XX liters of water. Find the maximum amount of extra water in liters that Chef can fill in the bucket without overflowing.

Fill the Bucket solution codechef Chef has a bucket having a capacity of KK liters. It is already filled with XX liters of water. Find the maximum amount of extra water in liters that Chef can fill in the bucket without overflowing. Input Format The first line will contain TT – the number of test cases. Then the test cases follow. The first … Read more