#16454. 最大值与最小值
最大值与最小值
说明
已知N个数,求这N个数中最大值与最小值的差。输入格式
第一行仅一个数N,其中N(1<=N<=10000)为数的个数第二行有N个整数。
输出格式
仅一个数,即最大值与最小值的差。5
4 3 5 7 16
5
4 3 5 7 16
By signing up a 算道OJ universal account, you can submit code and join discussions in all online judging services provided by us.