Submission #154050

#TimeUsernameProblemLanguageResultExecution timeMemory
154050gratus907두 박스 (KOI18_box)C++17
100 / 100
3 ms504 KiB
#include <bits/stdc++.h> #pragma GCC optimize("O3") #pragma GCC optimize("Ofast") #pragma GCC target("avx,avx2,fma") #define ll long long #define eps 1e-7 #define all(x) ((x).begin()),((x).end()) #define usecppio ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); using namespace std; using pii = pair<int, int>; string ans[4] = {"POINT","LINE","FACE","NULL"}; int x,x2,y,y2; int xx,xx2,yy,yy2; int answer() { if (x > xx2 || y > yy2 || xx > x2 || yy > y2) return 3; else if (x == xx2 || x2 == xx) { if (y==yy2 || y2 == yy) return 0; else return 1; } else if (y==yy2 || y2 == yy) return 1; else return 2; } int main() { usecppio cin >> x >> y >> x2 >> y2; cin >> xx >> yy >> xx2 >> yy2; cout << ans[answer()]; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...