Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
167717 | 黄锦昱 | 双关键字排序 | C++ | 通过 | 100 | 430 MS | 1040 KB | 355 | 2024-08-19 17:14:22 |
using namespace std; long long a[114514]; int main(){ int n; cin>>n; for(int i=0;i<n;i++){ long long c,b; cin>>c>>b; a[i]=(c*100000)+b; } sort(a,a+n); for(int i=0;i<n;i++){ long long u=a[i]; long long b=a[i]%100000; a[i]-=b; long long c=a[i]/100000; cout<<c<<" "<<b<<endl; } return 0; }
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0