Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
129377 李馥甄 找最大的数 C++ Accepted 2 MS 268 KB 246 2025-08-24 16:24:20

Tests(10/10):


Code:

#include <bits/stdc++.h> using namespace std; int a[10]; int mx; int b=1; int main(){ for(int i=0;i<10;i++){ cin>>a[i]; } mx=a[0]; for(int i=1;i<10;i++){ if(a[i]>mx){ mx=a[i]; b=i+1; } } cout<<b; return 0; }