| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 124137 | 程诺 | 找最大的数 | C++ | Wrong Answer | 1 MS | 272 KB | 365 | 2025-07-11 09:56:17 |
#include<bits/stdc++.h> using namespace std; int main(){ /** int a[5]={4781,4199,5211,41} ; for(int i=0;i<=4;i++){ cout<<a[i]<<endl; } **/ int n; int b; cin>>n; int a[n]; for(int i=0;i<=n-1;i++){ cin>>a[i]; int max=0; for(int j=0;j<=n-1;j++){ if(a[j]>max){ max = a[j]; b = j+1; } } } cout<<b; return 0; }
------Input------
540 810 559 973 744 226 261 427 615 615
------Answer-----
4
------Your output-----
470