Submission #464285

#TimeUsernameProblemLanguageResultExecution timeMemory
464285vendx_greybackBest Place (NOI17_bestplace)C++14
100 / 100
47 ms3832 KiB
#include <bits/stdc++.h> using namespace std; #define int long long #define all(x) (x).begin(),(x).end() int32_t main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n,i; cin>>n; vector<int> x(n),y(n); for(int i = 0; i<n; i++) cin>>x[i]>>y[i]; sort(all(x)); sort(all(y)); int temp = (n-1)/2; cout<<x[temp]<<' '<<y[temp]; return 0; }

Compilation message (stderr)

bestplace.cpp: In function 'int32_t main()':
bestplace.cpp:11:8: warning: unused variable 'i' [-Wunused-variable]
   11 |  int n,i;
      |        ^
#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...