SP34007 ADAM1 - Adrita and Marbles
Description
Adrita loves to play with marbles at home. She has a circular table on her living room. Let it be sticked on the ground and the ground be a 2D space having only 2 coordinates x and y. She knows the equation of the circle to be x^2 + y^2 - px - qy + z = 0
She has N number of marbles of radius 1 unit. The table is not polished and Adrita has some coordinates where she wants to put the marbles.
Help her calculating the number of marbles she will place on the table. Consider the thickness of the table is negligible and if the center is on the border of the table the marble is considered to be on the table.
Input Format
The first line contains an integer T (1
Output Format
Print the number of marbles on the table.