Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7412 邓小龙 找最大的数 C++ Wrong Answer 0 MS 264 KB 338 2025-04-23 11:04:19

Tests(0/10):


Code:

#include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ int s=10,b,a[11]={}; for(int i=1;i<=s;i++){ cin>>a[i]; } b=a[1]; for(int i=2;i<=s;i++){ if(b<a[i]){ b=i; } } cout<<b<<endl; return 0; }


Run Info:

------Input------
897 355 710 924 49 819 600 925 589 589
------Answer-----
8
------Your output-----
10