| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 127444 | 蔡悠然 | 排名次 | C++ | Accepted | 100 | 9 MS | 264 KB | 422 | 2024-01-25 09:06:47 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,student[10000][2]; cin>>n; for(int i=0;i<n;i++){ cin>>student[i][0]; student[i][1]=1; } for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ if(i==j){ continue; } else if(student[i][0]<student[j][0]){ student[i][1]++; } } } for(int i=0;i<n;i++){ cout<<student[i][0]<<" "<<student[i][1]<<endl; } return 0; }