Submission #67558

#TimeUsernameProblemLanguageResultExecution timeMemory
67558h0ngjun7두 박스 (KOI18_box)C++17
33 / 100
4 ms780 KiB
#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)

box.cpp: In function 'int main()':
box.cpp:8:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         int x, y; scanf("%d%d",&x,&y);
                   ~~~~~^~~~~~~~~~~~~~
box.cpp:10:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d%d",&x,&y);
         ~~~~~^~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...