| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 124141 | 程诺 | 找最大的数 | C++ | Accepted | 0 MS | 268 KB | 349 | 2025-07-11 09:58:18 |
#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 b; int a[10]; for(int i=0;i<=10-1;i++){ cin>>a[i]; int max=0; for(int j=0;j<=10-1;j++){ if(a[j]>max){ max = a[j]; b = j+1; } } } cout<<b; return 0; }