#Z15111. 最大值和最小值的差
最大值和最小值的差
Description
Output the difference between the largest and smallest numbers in an integer sequence.
Input Format
The first line contains an integer M, representing the number of integers (M will not exceed 10000).
The second line contains M integers separated by spaces, where the absolute value of each integer will not exceed 10000.
Output Format
Output the difference between the maximum and minimum values among the M numbers.
5
2 5 7 4 2
5