| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 136607 | 杜禹轩 | 找最大的数 | C++ | Accepted | 2 MS | 276 KB | 248 | 2025-11-15 14:28:46 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[11]; int x=0,n; for(int i=1;i<=10;i++){ cin>>a[i]; } x=a[1]; n=1; for(int i=2;i<=10;i++){ if(x<a[i]){ x=a[i]; n=i; } } cout<<n; return 0; }