# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
67558 | h0ngjun7 | 두 박스 (KOI18_box) | C++17 | 4 ms | 780 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 <bits/stdc++.h>
using namespace std;
int main() {
int sx, sy, ex, ey;
sx = sy = -1e9; ex = ey = 1e9;
for (int i = 0; i < 2; i++) {
int x, y; scanf("%d%d",&x,&y);
sx = max(sx, x); sy = max(sy, y);
scanf("%d%d",&x,&y);
ex = min(ex, x); ey = min(ey, y);
}
if (sx < ex && sy < ey) puts("FACE");
else if (sx == ex && sy == ey) puts("POINT");
else if (sx == ex || sy == ey) puts("LINE");
else puts("NULL");
}
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... |