C++ 代码
#include<iostream>
using namespace std;
int main()
{
int max=0, index=1;
for ( int i = 1; i <= 100; i++ )
{
int x;
cin >> x;
if ( x > max )
{
max = x;
index = i;
}
}
cout << max << endl << index << endl;
return 0;
}