Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98118 | 李谨睿 | 找最大的数 | C++ | Accepted | 1 MS | 272 KB | 279 | 2024-11-17 13:10:32 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[10],s=0; for(int i=0;i<=9;i++){ cin>>a[i]; } for(int i=0;i<=9;i++){ if(s<=a[i]){ s=a[i]; } } for(int i=0;i<=9;i++){ if(s==a[i]){ i++; cout<<i; break; } } return 0; }