| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81984 | sh25_shenpy | 查找数组中的某个数 | C++ | 通过 | 0 MS | 244 KB | 384 | 2026-01-09 17:28:24 |
#include<bits/stdc++.h> #include<algorithm> #include<functional> using namespace std; int main(){ int n,m; cin>>n; int s[n]; for(int i=0;i<n;++i){ cin>>s[i]; } cin>>m; sort(s,s+n,greater<int>()); for(int f=0;f<n;++f){ if(s[f]==m){ cout<<f+1; break; } } return 0;}