제출 #497882

#제출 시각아이디문제언어결과실행 시간메모리
497882akshtsinghaniaBest Place (NOI17_bestplace)C++14
100 / 100
86 ms3792 KiB
#include <bits/stdc++.h> using namespace std; #define int long long #define endl "\n" void solve(){ int n; cin>>n; vector<int> pa(n); vector<int> pb(n); for(int i=0;i<n;i++) cin >> pa[i] >> pb[i]; sort(pa.begin(),pa.end()); sort(pb.begin(),pb.end()); int middle = round((pa.size()-1)/2); cout<< pa[middle]<< " "<<pb[middle]<< endl; } signed main(){ int t =1; // cin>>t; while(t--)solve(); 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...