回答編集履歴
1
ちょいたし
answer
CHANGED
@@ -115,7 +115,8 @@
|
|
115
115
|
int[] rec3 = {0, 4, 7}; // 3レコード目、A社1位、B社2位、C社2位
|
116
116
|
int[] rec5 = {1, 5, 7}; // 5レコード目、A社2位、B社3位、C社2位
|
117
117
|
|
118
|
-
System.out.println("3レコード目が
|
118
|
+
System.out.println("3レコード目が5レコード目を支配しているか?" + (controlTo(toHyoukaStr(rec3), toHyoukaStr(rec5)) > 0)); // true
|
119
|
+
System.out.println("5レコード目が3レコード目に支配されているか?" + (controlTo(toHyoukaStr(rec5), toHyoukaStr(rec3)) < 0)); // true
|
119
120
|
|
120
121
|
```
|
121
122
|
|