Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
79282 sh25_shenpy 选总统 C++ 无测评数据 0 MS 0 KB 331 2026-01-01 20:34:55

Tests(0/0):


#include<bits/stdc++.h> using namespace std; int n; int main(){ cin>>n; long long s[n],t[n]; for(int i=0;i<n;++i){ cin>>s[i]; t[i]=s[i]; } sort(s,s+n); for(int j=0;j<n;++j){ if(t[j]==s[n-1]){ cout<<j+1; break; } } return 0; }