結果

問題 No.676 C0nvertPr0b1em
ユーザー dgd1724
提出日時 2018-06-26 19:29:50
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 448 bytes
コンパイル時間 425 ms
コンパイル使用メモリ 57,992 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-23 12:50:28
合計ジャッジ時間 1,326 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <fstream>
#include <iostream>
#include <string>

int main() {

	//std::ifstream inf("Text.txt");	std::cin.rdbuf(inf.rdbuf());

	std::string str;
	std::cin >> str;

	for (unsigned int i = 0; i < str.length(); i++) {
		switch (str[i])
		{
		case 'I':str[i] = '1'; break;
		case 'l':str[i] = '1'; break;
		case 'O':str[i] = '0'; break;
		case 'o':str[i] = '0'; break;
		default:
			break;
		}
	}

	std::cout << str << std::endl;

	return 0;
}
0