#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //#include //#include //#include //#include //#include //#include //#include //#include //#include //#if __cplusplus >= 201103L //#include //#include //#include //#include // //#define cauto const auto& //#else //#endif using namespace std; typedef long long ll; typedef pair pii; typedef pair pll; typedef vector vint; typedef vector > vvint; typedef vector vll, vLL; typedef vector > vvll, vvLL; #define VV(T) vector > template void initvv(vector > &v, int a, int b, const T &t = T()){ v.assign(a, vector(b, t)); } template void convert(const F &f, T &t){ stringstream ss; ss << f; ss >> t; } #define reep(i,a,b) for(int i=(a);i<(b);++i) #define rep(i,n) reep((i),0,(n)) #define ALL(v) (v).begin(),(v).end() #define PB push_back #define F first #define S second #define mkp make_pair #define RALL(v) (v).rbegin(),(v).rend() #define DEBUG #ifdef DEBUG #define dump(x) cout << #x << " = " << (x) << endl; #define debug(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl; #else #define dump(x) #define debug(x) #endif #define MOD 1000000007LL #define EPS 1e-8 static const int INF=1<<24; typedef complex P; namespace std { bool operator <(const P &a, const P &b) { if(a.real() != b.real()) return a.real() < b.real(); return a.imag() < b.imag(); } } double dot(P a, P b) { return a.real()*b.real() + a.imag()*b.imag(); } double cross(P a, P b) { return a.real()*b.imag() - a.imag()*b.real(); } int ccw(P p, P a, P b) { a -= p; b -= p; if(cross(a,b) > EPS) return 1; if(cross(a,b) < -EPS) return -1; if(dot(a,b) < -EPS) return 2; if(norm(b)-norm(a) > EPS) return -2; return 0; } vector

convex_hull(vector

ps) { int n = ps.size(), k = 0; sort(ps.begin(), ps.end()); vector

ch(2*n); for(int i = 0; i < n; ch[k++] = ps[i++]) while(k >= 2 && ccw(ch[k-2], ch[k-1], ps[i]) <= 0) --k; for(int i = n-2, t = k+1; i >= 0; ch[k++] = ps[i--]) while(k >= t && ccw(ch[k-2], ch[k-1], ps[i]) <= 0 )--k; ch.resize(k-1); return ch; } void mainmain(){ vector

v(5); rep(i,5){ double a,b; cin>>a>>b; v[i]=P(a,b); } vector

tmp=convex_hull(v); if(tmp.size()==5){ cout<<"YES"<