import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc= new Scanner(System.in); int n=sc.nextInt(); int max=0, min=100,sum=0; for (int i = 0; i <n; i++) { int a=sc.nextInt(); if(a>max) max=a; if(a<min) min=a; sum+=a; } System.out.println(max); System.out.println(min); System.out.printf("%.2f\n",sum*1.0/n); } }
0.0分
0 人评分