Submission #466128

#TimeUsernameProblemLanguageResultExecution timeMemory
466128NanoginesBest Place (NOI17_bestplace)C++14
0 / 100
25 ms320 KiB
#include <bits/stdc++.h> using namespace std; #define fastio ios::sync_with_stdio(0);cin.tie(0); cout.tie(0); #define forn(i, a, b) for (int i=a; i<b; i++) #define fore(i, a, b) for (int i=a; i<=b; i++) typedef vector<int> vi; void fast_io() { fastio; } signed main() { fast_io(); int n; cin >> n; int c, d; int s1 = 0, s2 = 0; forn(i, 0, n) { cin >> c >> d; s1 += c; s2 += d; } cout << ceil(s1 / n) << " " << ceil(s2 / n) << endl; }
#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...