제출 #966014

#제출 시각아이디문제언어결과실행 시간메모리
966014JungPSBest Place (NOI17_bestplace)C++14
0 / 100
18 ms1116 KiB
#include<iostream> #include<cmath> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); int n; cin >> n; int x[n],y[n]; for(int i=0;i<n;++i) cin >> x[i] >> y[i]; int ans; if(n==2){ ans=abs(x[1]-x[0])+abs(y[1]-y[0]); cout << ans; return 0; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...