#include #include #include #include using namespace std; using namespace atcoder; using namespace __gnu_pbds; using ll=long long; using ld=long double; using vll=vector; using vvll=vector; using pll=pair; // using mint=modint; // template // using ordered_map=tree,rb_tree_tag,tree_order_statistics_node_update>; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll X1,Y1,X2,Y2,X3,Y3; cin>>X1>>Y1>>X2>>Y2>>X3>>Y3; vector p={{X1,Y1},{X2,Y2},{X3,Y3}}; //直角の頂点をp[i]と仮定する for(int i=0;i<3;++i){ //直角の頂点をp[i]とし ll j=(i+1)%3,k=(i+2)%3; //まず、p[i]を原点に移動する ll a=p[j].first-p[i].first; ll c=p[k].first-p[i].first; ll b=p[j].second-p[i].second; ll d=p[k].second-p[i].second; //今は(a,b)(0,0)(c,d) //(1)00 -> ab は 00 -> cd と垂直のはず //(2)00 -> ab と 00 -> cd の距離は同値のはず //内積の式を使います if(a*c+b*d==0&&a*a+b*b==c*c+d*d){ //ベクトル加算の式 //p[i]を元に戻すとめ+p[i].firstと+p[i].secondが必要です(本来は(0,0)ではないため) cout<