| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 127642 | 周震东 | 排名次 | C++ | Accepted | 100 | 10 MS | 260 KB | 412 | 2024-01-25 09:45:15 |
#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]++; } } cout<<student[i][0]<<" "<<student[i][1]<<endl; } return 0; }