题目描述
题目中等,注意输出格式即可。
样例
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int num;
int max = 0,position = 0;
for(int i = 1; i <= 100; ++i)
{
scanf("%d",&num);
if (num > max)
{
int t = max;
max = num;
num = t;
position = i;
}
}
printf("%d\n",max);
printf("%d\n",position);
return 0;
}