import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
public class test{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("请输入学生数");
int s=sc.nextInt();
int[] a=new int[s];
System.out.println("请输入学生成绩以逗号隔开");
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
try {
String str=br.readLine();
String[] s1=str.split(",");
for(int i=0;i
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
int max=0; int min=100;int sum=0;
for(int j=0;j
if(a[j]>max){
max=a[j];
}
if(a[j]
}
sum+=a[j];
}
System.out.println("最高分数:"+max);
System.out.println("最低数"+min);
System.out.println("平均分数:"+sum/s);
}
}