Submission #923259

#TimeUsernameProblemLanguageResultExecution timeMemory
923259SpideySpideryBest Place (NOI17_bestplace)C++14
3 / 100
23 ms7812 KiB
#include <bits/stdc++.h> using namespace std; #define endl "\n" #define gap " " #define INF 2e18 #define nl cout<<endl #define fast_cin() ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL) void getIndex(vector<int> v, int K) { auto it = find(v.begin(), v.end(), K); cout << (it != v.end() ? it - v.begin() : -1) << endl; } void __print(int x) { cerr << x; } void __print(long x) { cerr << x; } void __print(long long x) { cerr << x; } void __print(unsigned x) { cerr << x; } void __print(unsigned long x) { cerr << x; } void __print(unsigned long long x) { cerr << x; } void __print(float x) { cerr << x; } void __print(double x) { cerr << x; } void __print(long double x) { cerr << x; } void __print(char x) { cerr << '\'' << x << '\''; } void __print(const char *x) { cerr << '\"' << x << '\"'; } void __print(const string &x) { cerr << '\"' << x << '\"'; } void __print(bool x) { cerr << (x ? "true" : "false"); } template <typename T, typename V> void __print(const pair<T, V> &x) { cerr << '{'; __print(x.first); cerr << ','; __print(x.second); cerr << '}'; } template <typename T> void __print(const T &x) { int f = 0; cerr << '{'; for (auto &i : x) cerr << (f++ ? "," : ""), __print(i); cerr << "}"; } void _print() { cerr << "]\n"; } template <typename T, typename... V> void _print(T t, V... v) { __print(t); if (sizeof...(v)) cerr << ", "; _print(v...); } #define debug(x...) cerr << "[" << #x << "] = ["; _print(x) int main() { fast_cin(); int n, x, y; cin >> n; int sum_x = 0, sum_y = 0; vector <vector<int>> coords(n); for (int i = 0; i < n; i++) { cin>>x>>y; sum_x = sum_x + x; sum_y = sum_y + y; coords[i].push_back(x); coords[i].push_back(y); } cout<<sum_x/n<<gap<<sum_y/n; // debug(coords); 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...