import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int a[] = new int[n];
for(int i = 0; i < n; i++){
a[i] = sc.nextInt();
}
long sum = 0;
long max = 0;
for(int i = 0 ; i< n; i++){
if(a[i] > max){
max = a[i];
}
sum += a[i];
}
System.out.println(sum * 100.0 / max / n );
sc.close();
}
}
LIST
'Coding Test > Baekjoon' 카테고리의 다른 글
[Baekjoon] 백준 2750번 수 정렬하기 [Java] (0) | 2022.09.18 |
---|---|
[Baekjoon] 백준 1316번 그룹 단어 체커 Python 문제풀이 (8단계 문자열) (0) | 2020.08.05 |
[Baekjoon/Python] 백준 2941번 크로아티아 알파벳 Python 문제풀이 (8단계 문자열) (0) | 2020.08.05 |
[Baekjoon] 백준 5622번 다이얼 Python 문제풀이 (8단계 문자열) (0) | 2020.08.05 |
[Baekjoon] 백준 2908번 상수 Python 문제풀이 (8단계 문자열) (0) | 2020.08.05 |
댓글