백준 문제풀이
백준 11650번 - C++
diligent_gideok
2022. 5. 11. 21:10
#include <bits/stdc++.h>
using namespace std;
pair<int, int> p[100004];
#define X first
#define Y second
int n, a, b;
int main(void) {
ios::sync_with_stdio(0);
cin.tie(0);
cin >> n;
for (int i = 0; i < n; i++) {
cin >> p[i].X>>p[i].Y;
}
sort(p, p + n);
for (int i = 0; i < n; i++) cout << p[i].X << ' ' <<p[i].Y << '\n';
}