回答編集履歴

1

バグの修正

2016/02/25 14:27

投稿

K_S_
K_S_

スコア419

test CHANGED
@@ -12,9 +12,9 @@
12
12
 
13
13
  private static double a(int[] p) {double r = 0.0;for(int c: p){r+=c;} return r/p.length;}
14
14
 
15
- private static void b(int[][] pa) {for(int[] d:pa){double e=a(d);for(int i=0;i<B.length;i++){if(e<B[i]){System.out.println(E[i]);continue;}}}}
15
+ 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]);}}
16
16
 
17
- private static boolean c() {return B.length + 1 == E.length;}
17
+ private static boolean c(){return B.length + 1 == E.length;}
18
18
 
19
19
 
20
20