| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 316224 | 123456 | 【C2-6】排名 | C++ | Accepted | 100 | 1 MS | 244 KB | 335 | 2025-04-06 10:52:51 |
#include<iostream> using namespace std; int main(){//排名 int n,tt,a,p=1;//默认童童排名第一 cin>>n>>tt;//n班级人数 tt童童分数 for(int i=2;i<=n;i++){//其他同学a的成绩输入 cin>>a; if(a>tt) p++;//如果其他同学成绩比童童高,童童排名增加1 } cout<<p; return 0; }