Difference between maximum and minimum
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given integers. Print the difference between the maximum and minimum number.
Input
The first line contains number . The second line contains integers, each one is no more than by absolute value.
Output
Print the difference between the maximum and minimum number.
Examples
Input #1
Answer #1
Submissions 13K
Acceptance rate 61%