[Solution] Subscriptions CodeChef Solution | CodeChef Problem Solution 2022
A new TV streaming service was recently started in Chefland called the Chef-TV.
A group of friends in Chefland want to buy Chef-TV subscriptions. We know that people can share one Chef-TV subscription. Also, the cost of one Chef-TV subscription is rupees. Determine the minimum total cost that the group of friends will incur so that everyone in the group is able to use Chef-TV.
Input Format
- The first line contains a single integer — the number of test cases. Then the test
Solution Click Below:- CLICK HERE
- The first and only line of each test case contains two integers and — the size of the group of friends and the cost of one subscription.
Output Format
For each test case, output the minimum total cost that the group will incur so that everyone in the
group is able to use Chef-TV.
No comments:
Post a Comment