제출 #1152066

#제출 시각아이디문제언어결과실행 시간메모리
1152066m.ingggBest Place (NOI17_bestplace)C++17
3 / 100
13 ms328 KiB
#include <bits/stdc++.h> #define vi vector<int> #define int long long #define fi first #define se second using namespace std; void solve(){ int n; cin >> n; int tx = 0; int ty = 0; for(int i = 0;i < n ;i++){ int x,y; cin >> x >> y; tx += x; ty += y; } int totx = tx/n + (tx % n != 0); int toty = ty/n + (ty % n != 0); cout << totx << ' ' << toty; } signed main(){ ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); 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...