Submission #479315

# Submission time Handle Problem Language Result Execution time Memory
479315 2021-10-11T08:08:44 Z PaNz3r Best Place (NOI17_bestplace) C++14
3 / 100
92 ms 2204 KB
#include <bits/stdc++.h>
#include <algorithm>
using namespace std;

int main(){
    int n;
    cin>>n;
    std::vector<int> x(n);
    std::vector<int> y(n);
    for(int i=0;i<n;i++){
        cin>>x[i]>>y[i];
    }
    long long x_s=0;
    long long y_s=0;
    for(auto a: x) x_s=x_s+a;
    for(auto a: y) y_s=y_s+a;
    cout<<x_s/n<<" "<<y_s/n<<endl;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
# 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 Correct 68 ms 972 KB Output is correct
2 Incorrect 62 ms 2204 KB Output isn't correct
3 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 2 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 92 ms 1068 KB Output isn't correct
2 Halted 0 ms 0 KB -