题目描述
题目中等。
样例
#include<iostream>
using namespace std;
int main()
{
int n, x[1000];
int m = 1000, k = 0;
cin >> n;
for (int i = 0;i < n;i ++)
{
cin >> x[i];
if (x[i] < m) m = x[i], k = i;
}
cout << "Minimum value: " << m << endl;
cout << "Position: " << k;
return 0;
}