| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 127467 | baim. | 排名次 | C++ | Accepted | 100 | 10 MS | 260 KB | 365 | 2024-01-25 09:12:00 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; int 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]++;} } cout<<student[i][0]<<" "<<student[i][1]<<endl; } }