C. Circles
time limit per test
3 с
memory limit per test
1024 megabytes
input
standard input
output
standard output
Example
Input
2
5 0 6
-5 0 6
Output
9.00311