Submission #544666

#TimeUsernameProblemLanguageResultExecution timeMemory
544666pokmui9909두 박스 (KOI18_box)C++17
100 / 100
1 ms340 KiB
#include <bits/stdc++.h> using namespace std; struct rec { int x1, y1, x2, y2; }; int main() { cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(false); rec a, b; cin >> a.x1 >> a.y1 >> a.x2 >> a.y2 >> b.x1 >> b.y1 >> b.x2 >> b.y2; rec t = {max(a.x1, b.x1), max(a.y1, b.y1), min(a.x2, b.x2), min(a.y2, b.y2)}; if(t.x1 == t.x2 && t.y1 == t.y2) cout << "POINT"; else if(t.x1 > t.x2 || t.y1 > t.y2) cout << "NULL"; else if(t.x1 == t.x2 || t.y1 == t.y2) cout << "LINE"; else cout << "FACE"; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...