Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
1125 | 黄天泽 | 找最大的数 | C++ | Wrong Answer | 0 MS | 268 KB | 250 | 2023-07-15 19:35:44 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[20]; int max=0; int i; int b; for (i=0;i<10;i++){ cin>>a[i]; if (max<a[i]){ max=a[i]; } else if (max=a[i]){ b=i; }else{ b=i; } } cout<<b; }
------Input------
897 355 710 924 49 819 600 925 589 589
------Answer-----
8
------Your output-----
9