Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
127642 周震东 排名次 C++ 通过 100 10 MS 260 KB 412 2024-01-25 09:45:15

Tests(10/10):


#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; }


测评信息: