回答編集履歴
4
追記
test
CHANGED
@@ -11,6 +11,8 @@
|
|
11
11
|
static int convertToInt(String src) {
|
12
12
|
|
13
13
|
String[] nums = src.split(" ");
|
14
|
+
|
15
|
+
// return 100 * Integer.parseInt(nums[0]) + Integer.parseInt(nums[1]); でも可
|
14
16
|
|
15
17
|
return Integer.parseInt(
|
16
18
|
|
3
修正
test
CHANGED
@@ -42,9 +42,15 @@
|
|
42
42
|
|
43
43
|
}
|
44
44
|
|
45
|
+
else if(base < input) {
|
46
|
+
|
47
|
+
System.out.println("勝ち");
|
48
|
+
|
49
|
+
}
|
50
|
+
|
45
51
|
else {
|
46
52
|
|
47
|
-
System.out.println("
|
53
|
+
System.out.println("エラー");
|
48
54
|
|
49
55
|
}
|
50
56
|
|
@@ -60,7 +66,31 @@
|
|
60
66
|
|
61
67
|
|
62
68
|
|
69
|
+
**入力例**
|
70
|
+
|
71
|
+
```
|
72
|
+
|
73
|
+
5 1
|
74
|
+
|
75
|
+
6
|
76
|
+
|
77
|
+
1 0
|
78
|
+
|
79
|
+
6 2
|
80
|
+
|
81
|
+
5 0
|
82
|
+
|
83
|
+
5 1
|
84
|
+
|
85
|
+
15 3
|
86
|
+
|
87
|
+
3 35
|
88
|
+
|
89
|
+
```
|
90
|
+
|
91
|
+
|
92
|
+
|
63
|
-
**実行結果** [Wandbox](https://wandbox.org/permlink/
|
93
|
+
**実行結果** [Wandbox](https://wandbox.org/permlink/VELgDv2rY1cf3i1C)
|
64
94
|
|
65
95
|
```
|
66
96
|
|
@@ -70,4 +100,10 @@
|
|
70
100
|
|
71
101
|
負け
|
72
102
|
|
103
|
+
エラー
|
104
|
+
|
105
|
+
勝ち
|
106
|
+
|
107
|
+
負け
|
108
|
+
|
73
109
|
```
|
2
修正
test
CHANGED
File without changes
|
1
追記
test
CHANGED
@@ -57,3 +57,17 @@
|
|
57
57
|
}
|
58
58
|
|
59
59
|
```
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
**実行結果** [Wandbox](https://wandbox.org/permlink/FJn9JkMHISCHxbL8)
|
64
|
+
|
65
|
+
```
|
66
|
+
|
67
|
+
負け
|
68
|
+
|
69
|
+
勝ち
|
70
|
+
|
71
|
+
負け
|
72
|
+
|
73
|
+
```
|