Submission #1005983

#TimeUsernameProblemLanguageResultExecution timeMemory
1005983makanhuliaBest Place (NOI17_bestplace)C++17
100 / 100
32 ms2020 KiB
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i=a; i<=(b); i++) #define F0R(i, a) for (int i=0; i<(a); i++) #define FORd(i,a,b) for (int i = (b); i >= a; i--) #define F0Rd(i,a) for (int i = (a)-1; i >= 0; i--) #define trav(a,x) for (auto& a : x) #define int long long #define ld long double #define lb lower_bound #define ceil(a,b) (a+(b-1))/b #define ins insert #define ub upper_bound #define pb push_back #define VI vector<int> #define VVI vector<VI> #define PII pair<int,int> #define VII vector<PII> #define size(x) x.size() #define all(x) x.begin(), x.end() #define fi first #define se second const int mod = 1e9+7; const int N = 2e5 + 5; // const int mod = 998244353; void solve(){ int n ; cin>>n; int x[n] , y[n]; for(int i = 0 ;i<n;i++){ cin>>x[i]>>y[i]; } sort(x,x+n); sort(y,y+n); cout<<x[n/2]<<" "<<y[n/2]<<endl; } int32_t main() { ios_base::sync_with_stdio(0); cin.tie(0); int t=1; cout<<setprecision(12)<<fixed; // cin>>t; while(t--){ solve(); } }
#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...