# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
493510 | 2021-12-11T19:08:51 Z | Overloaded | Best Place (NOI17_bestplace) | C++17 | 89 ms | 3956 KB |
#include<bits/stdc++.h> using namespace std; typedef long long int ll; typedef float ff; typedef vector<long long int> vi; #define all(x) (x).begin(),(x).end() #define rall(x) (x).rbegin(),(x).rend() #define sz(x) (int)x.size() #define pb(x) push_back(x) #define endl "\n" int txtinput(){ #ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); #endif return 0; } int solve(){ ll t,x1,y1; cin>>t; vi x; vi y; for (ll i = 0; i < t; i++) { cin>>x1>>y1; x.pb(x1);y.pb(y1); } sort(all(x)); sort(all(y)); cout<<(x[0]+x[t-1] + 1)/2<<" "<<(y[0]+y[t-1] + 1)/2; return 0; } int main(){ //txtinput(); //ll t; //cin>>t; //while(t--){ solve(); //} return 0; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 288 KB | Output is correct |
2 | Correct | 0 ms | 204 KB | Output is correct |
3 | Correct | 1 ms | 204 KB | Output is correct |
4 | Correct | 1 ms | 204 KB | Output is correct |
5 | Correct | 1 ms | 204 KB | Output is correct |
6 | Correct | 0 ms | 204 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | 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 | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 56 ms | 3048 KB | Output is correct |
2 | Incorrect | 66 ms | 3172 KB | Output isn't correct |
3 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 296 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 332 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 89 ms | 3956 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |