# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
82601 | tjdgus4384 | 두 박스 (KOI18_box) | C++14 | 2 ms | 1068 KiB |
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<cstdio>
#include<algorithm>
using namespace std;
int main()
{
int x1, x2, y1, y2;
int r1, r2, c1, c2;
scanf("%d %d %d %d", &x1, &y1, &x2, &y2);
scanf("%d %d %d %d", &r1, &c1, &r2, &c2);
if(x2 < r1 || r2 < x1 || y2 < c1 || c2 < y1)
{
printf("NULL");
}
else if((x2 == r1 || r2 == x1) && (y2 == c1 || c2 == y1))
{
printf("POINT");
}
else if(x2 == r1 || r2 == x1 || c2 == y1 || y2 == c1)
{
printf("LINE");
}
else
{
printf("FACE");
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |