提交时间:2024-03-06 13:17:30

运行 ID: 135692

#include<iostream> #include<cmath> #include<bits/stdc++.h> using namespace std; int a,b,c,d,e[100005],f,g,h,i,j; int main() { cin>>a; for(b=1;b<=a;b++) { cin>>c>>d; e[b]=c*100000+d; } sort(e+1,e+a+1); for(b=1;b<=a;b++) { cout<<e[b]/100000<<" "<<e[b]%100000<<endl; } return 0; }