Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
135692 | 吴宗桦 | 双关键字排序 | C++ | 通过 | 100 | 439 MS | 648 KB | 311 | 2024-03-06 13:17:30 |
#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; }