[Solution] Chef and Chocolates CodeChef Solution | CodeChef Problem Solution 2022
Chef has 5
rupee coins and 10
rupee coins. Chef goes to a shop to buy chocolates for Chefina where each chocolate costs rupees. Find the maximum number of chocolates that Chef can buy for Chefina.
Input Format
- The first line contains a single integer — the number of test cases. Then the test
Solution Click Below:- CLICK HERE
- cases follow.
- The first and only line of each test case contains three integers , and — the number of
5
rupee coins, the number of10
rupee coins and the cost of each chocolate.
Output Format
For each test case, output the maximum number of chocolates that Chef can buy for Chefina.
No comments:
Post a Comment