[Solution] Paper Cutting CodeChef Solution | Solution CodeChef
Problem
Chef has a square-shaped chart paper with the side length equal to . He wants to cut out squares from this chart paper.
Find the maximum number of squares he can cut from the entire chart paper.
Note that, some part of the chart paper might not be a included in any cutout square.
Input Format
- The first line contains a single integer — the number of test cases. Then the test cases follow.
- The first and only line of each test case contains two space-separated integers and — the side length of the entire chart paper and the side length of the cutout squares.
Output Format
For each test case, output on a new line the maximum number of squares Chef can cut from the entire chart paper.
👇👇👇👇👇
Explanation:
Test case 1: Chef can cut out squares of size from the entire chart paper.
Test case 2: Chef can cut out square of size from the entire chart paper.
Test case 3: Chef can cut out squares of size from the entire chart paper.
No comments:
Post a Comment