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>
using namespace std;
struct rec
{
int x1, y1, x2, y2;
};
int main()
{
cin.tie(0); cout.tie(0);
ios_base::sync_with_stdio(false);
rec a, b;
cin >> a.x1 >> a.y1 >> a.x2 >> a.y2 >> b.x1 >> b.y1 >> b.x2 >> b.y2;
rec t = {max(a.x1, b.x1), max(a.y1, b.y1), min(a.x2, b.x2), min(a.y2, b.y2)};
if(t.x1 == t.x2 && t.y1 == t.y2)
cout << "POINT";
else if(t.x1 > t.x2 || t.y1 > t.y2)
cout << "NULL";
else if(t.x1 == t.x2 || t.y1 == t.y2)
cout << "LINE";
else cout << "FACE";
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |