結果

問題 No.676 C0nvertPr0b1em
ユーザー 37zigen37zigen
提出日時 2018-04-27 23:45:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 201 ms / 2,000 ms
コード長 746 bytes
コンパイル時間 3,829 ms
コンパイル使用メモリ 74,216 KB
実行使用メモリ 134,624 KB
最終ジャッジ日時 2023-09-05 17:04:46
合計ジャッジ時間 10,031 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 190 ms
134,036 KB
testcase_01 AC 192 ms
134,352 KB
testcase_02 AC 195 ms
134,312 KB
testcase_03 AC 193 ms
134,392 KB
testcase_04 AC 196 ms
134,276 KB
testcase_05 AC 192 ms
134,388 KB
testcase_06 AC 193 ms
134,320 KB
testcase_07 AC 194 ms
134,352 KB
testcase_08 AC 187 ms
134,296 KB
testcase_09 AC 187 ms
134,032 KB
testcase_10 AC 188 ms
134,356 KB
testcase_11 AC 196 ms
134,296 KB
testcase_12 AC 201 ms
134,348 KB
testcase_13 AC 193 ms
134,496 KB
testcase_14 AC 190 ms
134,272 KB
testcase_15 AC 193 ms
134,104 KB
testcase_16 AC 195 ms
134,624 KB
testcase_17 AC 193 ms
134,356 KB
testcase_18 AC 187 ms
134,376 KB
testcase_19 AC 187 ms
134,216 KB
testcase_20 AC 193 ms
134,400 KB
testcase_21 AC 193 ms
134,424 KB
testcase_22 AC 195 ms
134,276 KB
testcase_23 AC 186 ms
134,268 KB
testcase_24 AC 185 ms
134,008 KB
testcase_25 AC 188 ms
134,400 KB
testcase_26 AC 185 ms
132,480 KB
testcase_27 AC 187 ms
134,016 KB
testcase_28 AC 191 ms
134,260 KB
testcase_29 AC 191 ms
134,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.Scanner;

public class Main {
	long[][] comb = new long[3001][3001];
	long M;
	int N;

	void run() {
		Scanner sc = new Scanner(System.in);
		char[] cs = sc.next().toCharArray();
		for (int i = 0; i < cs.length; ++i) {
			if (cs[i] == 'I' || cs[i] == 'l')
				cs[i] = '1';
			else if (cs[i] == 'O' || cs[i] == 'o')
				cs[i] = '0';
		}
		System.out.println(cs);

	}

	long pow(long a, long n, long mod) {
		long ret = 1;
		a %= mod;
		for (; n > 0; n >>= 1, a = a * a % mod) {
			if (n % 2 == 1) {
				ret = ret * a % mod;
			}
		}
		return ret;
	}

	public static void main(String[] args) {
		new Main().run();
	}

	void tr(Object... objects) {
		System.out.println(Arrays.deepToString(objects));
	}

}
0