Covering an equilateral triangle
Time limit1sMemory limit256 MB
Given side lengths A and B with A divisible by B, compute the minimum number of side-B equilateral triangles that cover a side-A equilateral triangle.
Problem
Jieun likes to cover things. This time she wants to cover an equilateral triangle with side length completely, using equilateral triangles with side length .
You are given two integers and . Here and is divisible by . Find the minimum number of triangles with side length that are needed to cover the triangle with side length completely.
Input
The first line contains the number of test cases . ()
Each of the next lines contains two integers and separated by a space. (, and is divisible by .)
Output
For each test case, print on its own line the minimum number of triangles with side length that are needed to cover the triangle with side length completely.