Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
92478 石水生 找最大的数 C++ Accepted 1 MS 272 KB 323 2024-10-05 14:05:27

Tests(10/10):


Code:

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