結果

問題 No.676 C0nvertPr0b1em
ユーザー kikage
提出日時 2020-02-14 00:00:15
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 290 bytes
コンパイル時間 478 ms
コンパイル使用メモリ 56,780 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-06 06:47:30
合計ジャッジ時間 1,351 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
    string str;
    cin >> str;
    for(int i=0;i<str.size();i++){
        if(str[i]=='I' || str[i]=='l')cout << '1';
        else if(str[i]=='O' || str[i]=='o')cout << '0';
        else cout << str[i];
    }cout << endl;
    return 0;
}
0