# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
491492 | Ghost_in_the_Wire | Best Place (NOI17_bestplace) | C++17 | 82 ms | 2044 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<long long> vi;
int main() {
ll n;
cin >> n;
vi posx = {};
vi posy = {};
for (int i = 0; i < n; i++) {
ll temp1, temp2;
cin >> temp1 >> temp2;
posx.push_back(temp1);
posy.push_back(temp2);
}
ll sumx, sumy = 0;
for (auto x: posx) sumx = sumx + x;
for (auto y: posy) sumy = sumy + y;
cout << round(sumx / n) << " " << round(sumy / n) << "\n";
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |