

import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
double[] score = new double[N];
double M = 0.0;
double cScore = 0.0;
double result = 0.0;
for(int i = 0; i < N; i++) {
score[i] = sc.nextInt();
if(score[i] > M)
M = score[i];
}
for(int i = 0; i < N; i++) {
cScore = (score[i]/M)*100;
result += cScore;
}
System.out.println(result/N);
sc.close();
}
}
'Algorithm > Baekjoon' 카테고리의 다른 글
[백준_JAVA] 10988 팰린드롬인지 확인하기 (0) | 2023.08.12 |
---|---|
[백준_JAVA] 10811 바구니 뒤집기 (0) | 2023.08.11 |
[백준_JAVA] 3052 나머지 (0) | 2023.08.09 |
[백준_JAVA] 1085 직사각형에서 탈출 (0) | 2023.08.08 |
[백준_JAVA] 5086 배수와 약수 (0) | 2023.08.07 |