/* * This template is valid both in C and in C++, * so you can expand it with code from both languages. * NOTE: it is recommended to use this even if you don't * understand the following code. */ #include #include #include // input data int T, i; int Xa, Ya, Xb, Yb, Xc, Yc, R; int main() { // uncomment the following lines if you want to read/write from files // freopen("input.txt", "r", stdin); // freopen("output.txt", "w", stdout); assert(1 == scanf("%d", &T)); for(i=0; i