結果

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

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
    string s,ans;
    cin>>s;
    for(int i=0;i<s.size();++i){
        if(s[i]=='I'||s[i]=='l')ans+='1';
        else if(s[i]=='O'||s[i]=='o')ans+='0';
        else ans+=s[i];
    }
    cout<<ans<<endl;
}
0