結果

問題 No.676 C0nvertPr0b1em
ユーザー asahi32942398asahi32942398
提出日時 2018-04-27 22:48:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 170 ms / 2,000 ms
コード長 492 bytes
コンパイル時間 2,028 ms
コンパイル使用メモリ 71,396 KB
実行使用メモリ 56,312 KB
最終ジャッジ日時 2023-09-05 17:03:22
合計ジャッジ時間 7,591 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,792 KB
testcase_01 AC 131 ms
55,728 KB
testcase_02 AC 152 ms
55,872 KB
testcase_03 AC 167 ms
55,812 KB
testcase_04 AC 167 ms
56,312 KB
testcase_05 AC 164 ms
56,028 KB
testcase_06 AC 156 ms
55,952 KB
testcase_07 AC 159 ms
55,864 KB
testcase_08 AC 127 ms
55,716 KB
testcase_09 AC 122 ms
55,668 KB
testcase_10 AC 160 ms
55,896 KB
testcase_11 AC 170 ms
55,868 KB
testcase_12 AC 167 ms
56,100 KB
testcase_13 AC 144 ms
55,844 KB
testcase_14 AC 125 ms
55,368 KB
testcase_15 AC 143 ms
55,868 KB
testcase_16 AC 168 ms
56,168 KB
testcase_17 AC 142 ms
55,812 KB
testcase_18 AC 128 ms
55,756 KB
testcase_19 AC 124 ms
55,700 KB
testcase_20 AC 154 ms
55,620 KB
testcase_21 AC 157 ms
55,872 KB
testcase_22 AC 156 ms
55,800 KB
testcase_23 AC 123 ms
55,864 KB
testcase_24 AC 121 ms
55,624 KB
testcase_25 AC 119 ms
55,736 KB
testcase_26 AC 121 ms
55,544 KB
testcase_27 AC 120 ms
55,592 KB
testcase_28 AC 121 ms
53,780 KB
testcase_29 AC 119 ms
55,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

 class main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    char[] carr = s.toCharArray();
    for(char c:carr){
        if(c=='l'||c=='I')
        //c='1';
        System.out.print('1');
        else if(c=='o'||c=='O')
        //c='0';
        System.out.print('0');
        else
        System.out.print(c);
    }
    //String newStr = String.valueOf(carr);
    //System.out.println(newStr);
}
}
0