| CodeSmash 2021 by RAPL |
|---|
| Finished |
Oyshee and Farhana bought a pizza which is divided into some equal slices. Here, the number of slices is unknown to us. All we know is the radius, $$$r$$$ of the pizza and the angle, $$$\theta$$$ (in degree) of a slice. See the image below for a better understanding.
Is it possible to distribute all the slices between them equally? Note that, they cannot divide the slices any further.
The input consists of multiple test cases. First line contains an integer $$$t$$$ $$$(1 \leq t \leq 2400)$$$ - the number of test cases. The descriptions of the test cases follow.
The first and only line of each test case contains two integers $$$r$$$ and $$$\theta$$$ $$$(1 \leq r \leq 100,$$$ $$$1 \leq \theta \leq 360)$$$ - the radius of the pizza and the angle of a slice. You can assume that the input will be given in a way that the pizza can be divided into some equal slices.
For each test case, print "YES" (without quotes), if it is possible that both of them get an equal amount of slices, "NO" (without quotes) otherwise.
310 455 408 60
YES NO YES
| Name |
|---|


