// // Created by liuhuan on 18-10-29. // #include using namespace std; int main() { int n; cin >> n; vector > v(n);/*相当于一个结构体*/ for (int i = 0; i < n; i++) cin >> v[i].first >> v[i].second; sort(v.begin(), v.end()); for (auto p:v) cout << p.first << " " << p.second << endl; return 0; }