結果

問題 No.676 C0nvertPr0b1em
ユーザー YamaKasaYamaKasa
提出日時 2018-05-09 18:06:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 165 ms / 2,000 ms
コード長 426 bytes
コンパイル時間 1,841 ms
コンパイル使用メモリ 71,616 KB
実行使用メモリ 56,632 KB
最終ジャッジ日時 2023-09-05 17:14:43
合計ジャッジ時間 7,157 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,580 KB
testcase_01 AC 125 ms
55,728 KB
testcase_02 AC 149 ms
55,812 KB
testcase_03 AC 160 ms
55,768 KB
testcase_04 AC 151 ms
55,848 KB
testcase_05 AC 161 ms
55,804 KB
testcase_06 AC 139 ms
55,960 KB
testcase_07 AC 150 ms
55,536 KB
testcase_08 AC 126 ms
56,028 KB
testcase_09 AC 116 ms
55,520 KB
testcase_10 AC 161 ms
55,776 KB
testcase_11 AC 148 ms
55,580 KB
testcase_12 AC 156 ms
55,812 KB
testcase_13 AC 135 ms
56,100 KB
testcase_14 AC 117 ms
55,636 KB
testcase_15 AC 131 ms
55,868 KB
testcase_16 AC 159 ms
55,952 KB
testcase_17 AC 144 ms
55,756 KB
testcase_18 AC 123 ms
55,652 KB
testcase_19 AC 121 ms
56,052 KB
testcase_20 AC 146 ms
54,112 KB
testcase_21 AC 148 ms
55,940 KB
testcase_22 AC 165 ms
56,268 KB
testcase_23 AC 115 ms
56,632 KB
testcase_24 AC 113 ms
55,560 KB
testcase_25 AC 113 ms
55,696 KB
testcase_26 AC 112 ms
55,792 KB
testcase_27 AC 112 ms
55,812 KB
testcase_28 AC 115 ms
55,516 KB
testcase_29 AC 116 ms
55,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String S = scan.next();
		scan.close();
		for(int i = 0; i < S.length(); i++) {
			char c = S.charAt(i);
			if(c == 'I' || c == 'l') {
				System.out.print(1);
			}else if(c == 'O' || c == 'o') {
				System.out.print(0);
			}else {
				System.out.print(c);
			}
		}
		System.out.println();
	}
}
0