,
最高分与最低分之差
http://www.nowcoder.com/questionTerminal/e0e4f81dcd55408a8973f8033bbeb1d2
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.util.*;
public class Main4{
public static void main(String[] args) throws Exception{
BufferedReader bw=new BufferedReader(new InputStreamReader(System.in));
String ss=bw.readLine();
String[] str=bw.readLine().split(" ");
List<integer> list=new ArrayList<>();
for(int i=0;i<str.length;i++){
list.add(Integer.valueOf(str[i]));
}
System.out.println(Collections.max(list)-Collections.min(list));
}
}</integer>