源码如下
#include <bits/stdc++.h>
using namespace std ;
int main ()
{
int n ;
cin >> n ;
int a[25];
int m = 0;
for (int i = 1 ; i <= n ; i ++ )
{
cin >> a[i] ;
m = max (a[i],m);
}
for (int i = 1 ; i <= m ; i ++ ){
if (a[i] == m) {cout << i << endl ; break ;}
}
cout << m <<endl;
return 0;
}
点一过了,其它全部
去世 ,
为神马???求解