質問編集履歴
1
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,10 +12,6 @@
|
|
12
12
|
|
13
13
|
public static void main(String[] args) {
|
14
14
|
|
15
|
-
// 自分の得意な言語で
|
16
|
-
|
17
|
-
// Let's チャレンジ!!
|
18
|
-
|
19
15
|
|
20
16
|
|
21
17
|
Scanner sc = new Scanner(System.in);
|
@@ -24,27 +20,27 @@
|
|
24
20
|
|
25
21
|
//int i = Integer.parseInt(s);
|
26
22
|
|
27
|
-
if(1 <=
|
23
|
+
if(1 <= s && s <= 100){ //入力は1~100まで
|
28
24
|
|
29
|
-
//
|
25
|
+
//String ss = Integer.toString(s);
|
30
26
|
|
31
|
-
s
|
27
|
+
s.replace("A","4");
|
32
28
|
|
33
|
-
s
|
29
|
+
s.replace("E","3");
|
34
30
|
|
35
|
-
s
|
31
|
+
s.replace("G","6");
|
36
32
|
|
37
|
-
s
|
33
|
+
s.replace("I","1");
|
38
34
|
|
39
|
-
s
|
35
|
+
s.replace("O","0");
|
40
36
|
|
41
|
-
s
|
37
|
+
s.replace("S","5");
|
42
38
|
|
43
|
-
s
|
39
|
+
s.replace("Z","2");
|
44
40
|
|
45
41
|
|
46
42
|
|
47
|
-
System.out.println(s
|
43
|
+
System.out.println(s);
|
48
44
|
|
49
45
|
}
|
50
46
|
|