結果

問題 No.676 C0nvertPr0b1em
ユーザー d_sei
提出日時 2019-08-19 15:57:15
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 354 bytes
コンパイル時間 696 ms
コンパイル使用メモリ 74,036 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-04 12:06:36
合計ジャッジ時間 1,547 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 WA * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include <vector>
#include<cmath>
using namespace std;
int main() {
	string S;
	cin >> S;
	int Z = S.size();
	for (int ia = 0; ia < Z; ia++) {
		if (S.at(ia) == 'I' || S.at(ia) == 'i') {
			S.at(ia) = '1';
		}
		else if (S.at(ia) == 'O' || S.at(ia) == 'o') {
			S.at(ia) = '0';
		}
		else continue;
	}
	cout << S;
}
0