Submission #460681

# Submission time Handle Problem Language Result Execution time Memory
460681 2021-08-09T08:23:05 Z Sad_Bus Best Place (NOI17_bestplace) C++14
0 / 100
69 ms 292 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 << round(xAvg) << " " << round(yAvg) << '\n';
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Expected integer, but "5e+08" found
2 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 48 ms 292 KB Expected integer, but "9.36998e+07" found
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 204 KB Expected integer, but "5.04502e+08" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 69 ms 292 KB Expected integer, but "4.99177e+08" found
2 Halted 0 ms 0 KB -