C 代码
#include<stdio.h>
int main(void)
{
int i,a[100],number,max = 0,n = 0,x;
for(i=0;i<100;i++)
{
scanf("%d",&number);
n++;
if(number>max)
{
max = number;
x = n;
}
}
printf("%d\n%d",max,x);
}