結果
| 問題 |
No.676 C0nvertPr0b1em
|
| コンテスト | |
| ユーザー |
mixjuice
|
| 提出日時 | 2018-06-26 18:49:21 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 19 ms / 2,000 ms |
| コード長 | 389 bytes |
| コンパイル時間 | 1,615 ms |
| コンパイル使用メモリ | 193,088 KB |
| 最終ジャッジ日時 | 2025-01-06 11:37:30 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
string s;
cin >> s;
rep(i,s.size()){
if(s[i] == 'I' || s[i] == 'l'){
s[i] = '1';
}
if(s[i] == 'O' || s[i] == 'o'){
s[i] = '0';
}
}
cout << s << endl;
return 0;
}
mixjuice