結果

問題 No.676 C0nvertPr0b1em
ユーザー YamaKasa
提出日時 2018-05-09 18:03:20
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 426 bytes
コンパイル時間 3,424 ms
コンパイル使用メモリ 74,952 KB
実行使用メモリ 56,248 KB
最終ジャッジ日時 2024-06-23 12:44:32
合計ジャッジ時間 7,495 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 WA * 26
権限があれば一括ダウンロードができます

ソースコード

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 == 'i') {
				System.out.print(1);
			}else if(c == 'O' || c == 'o') {
				System.out.print(0);
			}else {
				System.out.print(c);
			}
		}
		System.out.println();
	}
}
0