[C++] 백준 11651 좌표 정렬하기 2
·
Algorithm/Baekjoon
#include #include #include using namespace std; bool comp(const vector &x, const vector &y); int main() { ios::sync_with_stdio(false); vector number; int N; cin >> N; for (int i = 0; i > x >> y; number.push_back({ x, y }); } sort(number.begin(), number.end(), comp); for (int i = 0; i < N; i++) { cout