This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#define ll long long
#define eps 1e-7
#define all(x) ((x).begin()),((x).end())
#define usecppio ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
using namespace std;
using pii = pair<int, int>;
string ans[4] = {"POINT","LINE","FACE","NULL"};
int x,x2,y,y2;
int xx,xx2,yy,yy2;
int answer()
{
if (x > xx2 || y > yy2 || xx > x2 || yy > y2)
return 3;
else if (x == xx2 || x2 == xx)
{
if (y==yy2 || y2 == yy)
return 0;
else
return 1;
}
else if (y==yy2 || y2 == yy)
return 1;
else
return 2;
}
int main()
{
usecppio
cin >> x >> y >> x2 >> y2;
cin >> xx >> yy >> xx2 >> yy2;
cout << ans[answer()];
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |