結果

問題 No.676 C0nvertPr0b1em
ユーザー cww
提出日時 2018-05-07 02:08:29
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 510 bytes
コンパイル時間 1,919 ms
コンパイル使用メモリ 194,228 KB
最終ジャッジ日時 2025-01-05 10:30:27
ジャッジサーバーID
(参考情報)
judge5 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star;
int main()
{
    string S;
    cin >> S;
    
    string T;
    for( int i = 0; i <= (int)S.size(); ++i )
    {
        if( S[ i ] == 'I' || S[ i ] == 'l' )
        {
            T += '1';
            continue;
        }
        else if( S[ i ] == 'O' || S[ i ] == 'o' )
        {
            T += '0';
            continue;
        }
        T += S[ i ];
    }
    cout << T << endl;
    return 0;
}
0