| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 12690 | 苏莉雯 | 坐标排序 | C++ | Accepted | 100 | 1 MS | 260 KB | 345 | 2025-08-17 11:40:27 |
#include<bits/stdc++.h> using namespace std; struct fs { int x,y; } s[1000]; bool cmp1(fs a,fs c) { return a.x<c.x||a.x==c.x&&a.y<c.y; } int main() { int n,g=1,d; char e; cin>>n; for(int i=0; i<n; i++) { cin>>s[i].x>>s[i].y; } sort(s,s+n,cmp1); for(int i=0;i<n;i++) { cout<<s[i].x<<" "<<s[i].y<<" "<<endl; } }