結果

問題 No.676 C0nvertPr0b1em
ユーザー GrenacheGrenache
提出日時 2018-04-27 22:22:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 818 bytes
コンパイル時間 5,283 ms
コンパイル使用メモリ 73,192 KB
実行使用メモリ 56,532 KB
最終ジャッジ日時 2023-09-05 16:58:33
合計ジャッジ時間 8,327 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,812 KB
testcase_01 AC 120 ms
55,568 KB
testcase_02 AC 121 ms
55,416 KB
testcase_03 AC 121 ms
55,844 KB
testcase_04 AC 122 ms
55,408 KB
testcase_05 AC 128 ms
55,660 KB
testcase_06 AC 121 ms
55,456 KB
testcase_07 AC 122 ms
54,124 KB
testcase_08 AC 121 ms
55,448 KB
testcase_09 AC 122 ms
55,344 KB
testcase_10 AC 123 ms
55,340 KB
testcase_11 AC 125 ms
56,532 KB
testcase_12 AC 123 ms
55,376 KB
testcase_13 AC 122 ms
55,596 KB
testcase_14 AC 121 ms
55,952 KB
testcase_15 AC 123 ms
55,444 KB
testcase_16 AC 122 ms
55,884 KB
testcase_17 AC 123 ms
56,068 KB
testcase_18 AC 121 ms
55,640 KB
testcase_19 AC 119 ms
55,804 KB
testcase_20 AC 122 ms
55,700 KB
testcase_21 AC 123 ms
55,436 KB
testcase_22 AC 122 ms
55,892 KB
testcase_23 AC 118 ms
55,684 KB
testcase_24 AC 120 ms
55,596 KB
testcase_25 AC 118 ms
55,408 KB
testcase_26 AC 118 ms
55,720 KB
testcase_27 AC 118 ms
55,652 KB
testcase_28 AC 119 ms
55,888 KB
testcase_29 AC 119 ms
55,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;


public class Main_yukicoder676 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		char[] s = sc.next().toCharArray();

		for (int i = 0, size = s.length; i < size; i++) {
			if (s[i] == 'I' || s[i] == 'l') {
				s[i] = '1';
			} else if (s[i] == 'O' || s[i] == 'o') {
				s[i] = '0';
			}
		}

		pr.println(s);
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(INPUT == null ? System.in : new ByteArrayInputStream(INPUT.getBytes()));
		pr = new Printer(System.out);

		solve();

//		pr.close();
		pr.flush();
//		sc.close();
	}

	static String INPUT = null;

	private static class Printer extends PrintWriter {
		Printer(OutputStream out) {
			super(out);
		}
	}
}
0