Submission #894697

#TimeUsernameProblemLanguageResultExecution timeMemory
894697rainboy두 박스 (KOI18_box)C11
100 / 100
1 ms604 KiB
#include <stdio.h> int min(int a, int b) { return a < b ? a : b; } int max(int a, int b) { return a > b ? a : b; } int main() { int xl1, yl1, xr1, yr1, xl2, yl2, xr2, yr2, xl, yl, xr, yr; scanf("%d%d%d%d%d%d%d%d", &xl1, &yl1, &xr1, &yr1, &xl2, &yl2, &xr2, &yr2); xl = max(xl1, xl2), xr = min(xr1, xr2), yl = max(yl1, yl2), yr = min(yr1, yr2); if (xl > xr || yl > yr) printf("NULL\n"); else if (xl == xr && yl == yr) printf("POINT\n"); else if (xl == xr || yl == yr) printf("LINE\n"); else printf("FACE\n"); return 0; }

Compilation message (stderr)

box.c: In function 'main':
box.c:9:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
    9 |  scanf("%d%d%d%d%d%d%d%d", &xl1, &yl1, &xr1, &yr1, &xl2, &yl2, &xr2, &yr2);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...