Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
127467 | baim. | 排名次 | C++ | 通过 | 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; } }