제출 #484534

#제출 시각아이디문제언어결과실행 시간메모리
484534mananBest Place (NOI17_bestplace)C++17
3 / 100
20 ms3020 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long int // Added #define True true #define False false #define endl "\n" void solve() { ll n; cin >> n; vector<pair<ll, ll>> co(n); for (ll i = 0; i < n; ++i) cin >> co[i].first >> co[i].second; ll tx = 0, ty = 0; for (ll i = 0; i < n; ++i) { tx += co[i].first; ty += co[i].second; } cout << tx/n << " " << ty/n << endl; } int main() { ios::sync_with_stdio(false); cin.tie(NULL); // int 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...