Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
81987 sh25_shenpy 查找数组中的最大值、最小值 C++ 无测评数据 0 MS 0 KB 370 2026-01-09 18:00:15

Tests(0/0):


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