回答編集履歴
1
ソースの修正案を追加
test
CHANGED
@@ -79,3 +79,27 @@
|
|
79
79
|
}
|
80
80
|
|
81
81
|
```
|
82
|
+
|
83
|
+
**追記**
|
84
|
+
|
85
|
+
ちょっと修正。
|
86
|
+
|
87
|
+
```Java
|
88
|
+
|
89
|
+
if (sex != 1 && sex != 2)
|
90
|
+
|
91
|
+
System.out.println(msg[0][3]);
|
92
|
+
|
93
|
+
else {
|
94
|
+
|
95
|
+
System.out.println(msg[--sex][0]);
|
96
|
+
|
97
|
+
int n = sc.nextInt();
|
98
|
+
|
99
|
+
if (n != 1 && n != 2) n = 3;
|
100
|
+
|
101
|
+
System.out.println(msg[sex][n]);
|
102
|
+
|
103
|
+
}
|
104
|
+
|
105
|
+
```
|