結果

問題 No.676 C0nvertPr0b1em
ユーザー ken8aisa
提出日時 2018-06-18 16:48:52
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 337 bytes
コンパイル時間 611 ms
コンパイル使用メモリ 55,824 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-23 12:49:32
合計ジャッジ時間 1,434 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
using namespace std;
int main() {
	char s[1010];

	cin >> s;
	for (int i = 0; i < 1010; i++) {
		if (s[i] == 'I' || s[i] == 'l')
			cout << '1';
		else if (s[i] == 'O' || s[i] == 'o')
			cout << '0';
		else if (s[i] != 0)
			cout << s[i];
		else {
			cout << endl;
			//cin >> s;
			return 0;
		}
	}
}
0