Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
108981 | 曹老师 | 计算平均数 | C++ | Wrong Answer | 1 MS | 276 KB | 317 | 2025-01-23 20:47:30 |
#include<iostream> #include<cstdio> using namespace std; int main(){ int a[10]; int w=-1; int max=-1; for(int i=0;i<10;i++) { cin>>a[i]; if(a[i]>max) { w=i; max=a[i]; } } cout<<w+1<<endl; return 0; }
------Input------
679 849 98 256 256
------Answer-----
427.60 679 849
------Your output-----
10