結果

問題 No.676 C0nvertPr0b1em
ユーザー yamax3232yamax3232
提出日時 2018-05-03 20:32:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 183 ms / 2,000 ms
コード長 465 bytes
コンパイル時間 3,454 ms
コンパイル使用メモリ 73,780 KB
実行使用メモリ 57,004 KB
最終ジャッジ日時 2023-09-05 17:10:28
合計ジャッジ時間 9,749 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 167 ms
56,744 KB
testcase_01 AC 169 ms
56,812 KB
testcase_02 AC 178 ms
56,940 KB
testcase_03 AC 178 ms
56,972 KB
testcase_04 AC 177 ms
56,796 KB
testcase_05 AC 179 ms
56,528 KB
testcase_06 AC 178 ms
56,972 KB
testcase_07 AC 176 ms
56,860 KB
testcase_08 AC 166 ms
57,004 KB
testcase_09 AC 162 ms
56,808 KB
testcase_10 AC 173 ms
56,848 KB
testcase_11 AC 183 ms
56,704 KB
testcase_12 AC 174 ms
56,544 KB
testcase_13 AC 170 ms
56,840 KB
testcase_14 AC 165 ms
56,732 KB
testcase_15 AC 169 ms
56,800 KB
testcase_16 AC 175 ms
56,776 KB
testcase_17 AC 166 ms
56,848 KB
testcase_18 AC 162 ms
56,916 KB
testcase_19 AC 162 ms
56,852 KB
testcase_20 AC 172 ms
56,772 KB
testcase_21 AC 182 ms
56,528 KB
testcase_22 AC 175 ms
56,840 KB
testcase_23 AC 160 ms
56,676 KB
testcase_24 AC 127 ms
55,720 KB
testcase_25 AC 125 ms
55,600 KB
testcase_26 AC 127 ms
55,332 KB
testcase_27 AC 126 ms
55,356 KB
testcase_28 AC 163 ms
56,700 KB
testcase_29 AC 164 ms
56,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main23 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner kb=new Scanner(System.in);
		String g=kb.next();
		String r="";
		for(int i=0;i<g.length();i++){
			char c;
			if(g.charAt(i)=='I'||
					g.charAt(i)=='l'){
			r+='1';
			}
			else if(g.charAt(i)=='O'||
					g.charAt(i)=='o'){
			r+='0';
		}else{
			r+=g.charAt(i);
		}
			
	}
		System.out.println(r);
	}
}
0