#include
int main()
{
int n = 0;
int m = 0;
int max = 0;// max min大小依据题目定义
int min = 100;
scanf("%d",&n);//n组数据
for(int i = 0;imax)
{
max = m; //最大的数赋值给max
}
if(m
#include
#define N 10000 //假设最大值为10000组数据
int main()
{
int arr[N];
int n=0;
int i=0;
int max,min;
scanf("%d",&n);
for(i=0;iarr[i])
min=arr[i];
}
printf("%d",max-min);
return 0;
}