結果

問題 No.676 C0nvertPr0b1em
コンテスト
ユーザー dgd1724
提出日時 2018-06-26 19:29:50
言語 C++11
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 448 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 520 ms
コンパイル使用メモリ 75,828 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2026-03-08 07:19:48
合計ジャッジ時間 1,153 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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