Submission #966011

#TimeUsernameProblemLanguageResultExecution timeMemory
966011JungPSBest Place (NOI17_bestplace)C++14
0 / 100
16 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]; if(n==2){ cout << abs(x[1]-x[0])+abs(y[1]-y[0]); 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...