結果

問題 No.676 C0nvertPr0b1em
ユーザー ei1333333
提出日時 2018-04-27 22:26:00
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 257 bytes
コンパイル時間 2,035 ms
コンパイル使用メモリ 193,308 KB
最終ジャッジ日時 2025-01-05 10:23:38
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>

using namespace std;

using int64 = long long;

int main() {
  string S;
  cin >> S;
  for(auto &c : S) {
    if(c == 'I' || c == 'l') cout << 1;
    else if(c == 'O' || c == 'o') cout << 0;
    else cout << c;
  }
  cout << endl;
}
0