标签:
3 0
代码:
#include <iostream>
#include <cstdio>
#define MAXN 100
using namespace std;
int a[MAXN];
int main()
{
int n, max = 0, Num = 0;
cin >> n;
for(int i = 0; i < n; i++)
{
cin >>a[i];
if(a[i] > max)
{
max = a[i];
Num = i;
}
}
cout << max << " "<< Num<<endl;
return 0;
}
标签:
原文地址:http://blog.csdn.net/u012965373/article/details/44945679