回答編集履歴
1
バグの修正
answer
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
private static int[] B = {50, 75};
|
6
6
|
private static String[] E = {"不可","良","優"};
|
7
7
|
private static double a(int[] p) {double r = 0.0;for(int c: p){r+=c;} return r/p.length;}
|
8
|
-
private static void b(int[][] pa) {for(int[] d:pa){double e=a(d);
|
8
|
+
private static void b(int[][] pa) {for(int[] d : pa){double e = a(d);int i=0;for(i=0;i<B.length;i++){if(e<B[i]){break;}}System.out.println(E[i]);}}
|
9
|
-
private static boolean c()
|
9
|
+
private static boolean c(){return B.length + 1 == E.length;}
|
10
10
|
|
11
11
|
public static void main(String[] args) {
|
12
12
|
int[][] Ten = {{70, 40, 90},{55, 65, 80}, {90, 45, 60},{70, 30, 75},{40, 60, 100}};
|