#define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include ///////// #define REP(i, x, n) for(int i = x; i < n; i++) #define rep(i,n) REP(i,0,n) #define P(p) cout<<(p)<>X[i]>>Y[i]; } for(int i=0;i<3;++i) { ansf = solve(X[i%3],Y[i%3],X[(i+1)%3],Y[(i+1)%3],X[(i+2)%3],Y[(i+2)%3], &ansX,&ansY); if( ansf == true ){ cout << ansX << " " << ansY << endl; break; } } if( ansf == false){ cout << -1 << endl; } return 0; }