質問編集履歴

1

コード修正

2019/11/12 12:01

投稿

NIKONIKONIKONIK
NIKONIKONIKONIK

スコア83

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 <= i && i <= 100){ //入力は1~100まで
23
+ if(1 <= s && s <= 100){ //入力は1~100まで
28
24
 
29
- // String ss = Integer.toString(i);
25
+ //String ss = Integer.toString(s);
30
26
 
31
- ss.replace("A","4");
27
+ s.replace("A","4");
32
28
 
33
- ss.replace("E","3");
29
+ s.replace("E","3");
34
30
 
35
- ss.replace("G","6");
31
+ s.replace("G","6");
36
32
 
37
- ss.replace("I","1");
33
+ s.replace("I","1");
38
34
 
39
- ss.replace("O","0");
35
+ s.replace("O","0");
40
36
 
41
- ss.replace("S","5");
37
+ s.replace("S","5");
42
38
 
43
- ss.replace("Z","2");
39
+ s.replace("Z","2");
44
40
 
45
41
 
46
42
 
47
- System.out.println(ss);
43
+ System.out.println(s);
48
44
 
49
45
  }
50
46