[Solution] Minimum Pizzas CodeChef Solution
Problem
Each pizza consists of slices. There are friends and each friend needs exactly slices.
Find the minimum number of pizzas they should order to satisfy their appetite.
Input Format
- The first line of input will contain a single integer , denoting the number of test cases.
- Each test case consists of two integers and , the number of friends and the number of slices each friend wants respectively.
Output Format
For each test case, output the minimum number of pizzas required.
Explanation:
Test case : There is only friend who requires slices. If he orders pizza, he will get only slices. Thus, at least pizzas should be ordered to have required number of slices.
Test case : There are friends who require slices each. Thus, total slices are required. To get slices, they should order pizzas.
Test case : There are friends who require slices each. Thus, total slices are required. To get slices, they should order pizzas.
Test case : There are friends who require slices each. Thus, total slices are required. To get slices, they should order at least pizzas.
No comments:
Post a Comment