# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
63166 | kjp4155 | 두 박스 (KOI18_box) | C++17 | 0 ms | 0 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 <stdio.h>
#include <algorithm>
int main(){
int px1, py1, px2, py2;
int qx1, qy1, qx2, qy2;
scanf("%d%d%d%d",&px1,&py1,&px2,&py2);
scanf("%d%d%d%d",&qx1,&qy1,&qx2,&qy2);
int x_left = max(px1, qx1);
int x_right = min(px2, qx2);
int y_bottom = max(py1, qy1);
int y_top = min(py2, qy2);
int xdiff = x_right - x_left;
int ydiff = y_top - y_bottom;
if( xdiff > 0 && ydiff > 0 ) printf("FACE\n");
else if( xdiff == 0 && ydiff > 0 ) printf("LINE\n");
else if( xdiff > 0 && ydiff == 0 ) printf("LINE\n");
else if( xdiff == 0 && ydiff == 0 ) printf("POINT\n");
else printf("NULL\n");
}