結果

問題 No.676 C0nvertPr0b1em
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-05-18 01:25:08
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 422 bytes
コンパイル時間 2,649 ms
コンパイル使用メモリ 72,272 KB
実行使用メモリ 56,320 KB
最終ジャッジ日時 2023-09-05 17:16:50
合計ジャッジ時間 7,772 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,872 KB
testcase_01 AC 119 ms
55,856 KB
testcase_02 AC 124 ms
53,964 KB
testcase_03 AC 124 ms
55,716 KB
testcase_04 AC 123 ms
55,612 KB
testcase_05 AC 126 ms
55,432 KB
testcase_06 AC 122 ms
55,832 KB
testcase_07 AC 125 ms
55,688 KB
testcase_08 AC 121 ms
55,504 KB
testcase_09 AC 118 ms
55,976 KB
testcase_10 AC 123 ms
56,012 KB
testcase_11 AC 123 ms
55,692 KB
testcase_12 AC 122 ms
55,840 KB
testcase_13 AC 122 ms
55,668 KB
testcase_14 AC 119 ms
55,504 KB
testcase_15 AC 122 ms
56,320 KB
testcase_16 AC 125 ms
55,840 KB
testcase_17 AC 122 ms
55,688 KB
testcase_18 AC 120 ms
55,812 KB
testcase_19 AC 117 ms
55,528 KB
testcase_20 AC 122 ms
55,860 KB
testcase_21 AC 122 ms
55,784 KB
testcase_22 AC 125 ms
55,548 KB
testcase_23 AC 119 ms
55,420 KB
testcase_24 AC 120 ms
55,692 KB
testcase_25 AC 120 ms
55,396 KB
testcase_26 AC 120 ms
55,640 KB
testcase_27 AC 122 ms
55,636 KB
testcase_28 AC 121 ms
55,784 KB
testcase_29 AC 122 ms
55,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import static java.lang.System.*;
import java.util.*;

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