Submission #966001

# Submission time Handle Problem Language Result Execution time Memory
966001 2024-04-19T09:16:04 Z Zone_zonee Best Place (NOI17_bestplace) C++14
0 / 100
63 ms 2900 KB
#include <bits/stdc++.h>
using namespace std;

int main(){
    int n;
    cin>>n;
    vector<pair<int,int>> posi(n);
    for(int i=0;i<n;i++){
        cin>>posi[i].first>>posi[i].second;
    }
    sort(posi.begin(),posi.end());
    cout<<(posi[0].first+posi[n-1].first)/2;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 40 ms 2288 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 63 ms 2900 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -