Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146290 张宇泽 找最大的数 C++ Accepted 1 MS 272 KB 262 2026-01-28 10:23:30

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a[11],m,index; cin>>a[1]; m=a[1]; index=1; for(int i=2;i<=9;i++){ cin>>a[i]; } for(int i = 2;i<=9;i++){ if(a[i]>m){ m=a[i]; index=i; } } cout<<index; return 0; }