Submission #67559

#TimeUsernameProblemLanguageResultExecution timeMemory
67559h0ngjun7두 박스 (KOI18_box)C++17
100 / 100
4 ms828 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("NULL"); else if (sx == ex && sy == ey) puts("POINT"); else if (sx == ex || sy == ey) puts("LINE"); else puts("FACE"); }

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...