제출 #1006029

#제출 시각아이디문제언어결과실행 시간메모리
1006029andecaandeciBest Place (NOI17_bestplace)C++17
컴파일 에러
0 ms0 KiB
#include <bits.stdc++.h> using namespace std; #define int long long signed main(){ int n, ansx, ansy; cin >> n; vector <int> x, y; for(int i = 0; i < n; i++){ int xp, yp; cin >> xp >> yp; x.push_back(xp); y.push_back(yp); } sort(x.begin(), x.end()); sort(y.begin(), y.end()); if(n%2 == 1){ cout << x[1 + (n/2)] << " " << y[1 + (n/2)]; } else{ cout << (x[n/2] + x[n/2])/2 << " " << (y[n/2] + y[n/2])/2; } }

컴파일 시 표준 에러 (stderr) 메시지

bestplace.cpp:1:10: fatal error: bits.stdc++.h: No such file or directory
    1 | #include <bits.stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.