Solar Farm
시간 제한1초메모리 제한2048 MB
반지름 r인 원 안에 w x h 크기의 직사각형을 같은 방향으로 격자 배열할 때 넣을 수 있는 최대 개수를 구한다.
문제
You are building a new solar farm. The area in which you are allowed to build is a circular field of radius , and the solar panels each take up a rectangular space of size . You must place all the panels in the same orientation of your choice in a single rectangular array (so that all of the panels combined exactly form a single rectangle). What is the maximum number of panels that you can fit in this farm?
입력
The first line of input contains a single integer (). This is the number of test cases.
The next lines of input each represent one test case and consist of three space-separated integers , , and (): the radius of the field, the width of each solar panel, and the height of each solar panel, respectively.
출력
For each test case, print a line with a single integer: the maximum number of solar panels that can be placed in a solar farm within the circular field.