結果

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

ソースコード

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;
		}
		if (S.at(ia) == 'O' || S.at(ia) == 'o') {
			S.at(ia) = 0;
		}
	}
	cout << S;
}
0