Submission #460687

# Submission time Handle Problem Language Result Execution time Memory
460687 2021-08-09T08:24:12 Z Sad_Bus Best Place (NOI17_bestplace) C++14
0 / 100
78 ms 652 KB
#include <iostream>
#include <fstream>
#include <bits/stdc++.h>

using namespace std;

#define int long long

//ofstream fout(".out");
//ifstream fin(".in");

int32_t main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    int n;
    float xAvg = 0, yAvg = 0;
    cin >> n;

    for (int i = 0; i < n; ++i)
    {
        float x, y;
        cin >> x >> y;
        xAvg += x;
        yAvg += y;
    }

    xAvg /= n;
    yAvg /= n;

    cout << (int)round(xAvg) << " " << (int)round(yAvg) << '\n';
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Incorrect 1 ms 308 KB Output isn't correct
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 1 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 51 ms 652 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 332 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 78 ms 588 KB Output isn't correct
2 Halted 0 ms 0 KB -