JZOJ 1765. Circle 1011474322
题目
(Standard IO)
Time Limits: 1000 ms Memory Limits: 256000 KB Detailed Limits
分析
-
切线长定理,所以当他为三角形周长时,结论一定成立
代码
#include<iostream> #include<cmath> using namespace std; int main () { int T; cin>>T; while (T) { T--; long long x1,y1,x2,y2,x3,y3; cin>>x1>>y1>>x2>>y2>>x3>>y3; double a=(sqrt(((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)))); double b=(sqrt(((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3)))); double c=(sqrt(((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3)))); cout<<(long long)(a+b+c)<<endl; } }
为何要逼自己长大,去闯不该闯的荒唐