結果
問題 | No.676 C0nvertPr0b1em |
ユーザー |
![]() |
提出日時 | 2019-03-04 22:31:06 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 397 bytes |
コンパイル時間 | 463 ms |
コンパイル使用メモリ | 62,120 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-23 14:02:08 |
合計ジャッジ時間 | 1,423 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
#include <iostream>#include <vector>#include <algorithm>#include <string>using namespace std;string f(string s){string ans = "";for(int i = 0; i < s.length(); i++){if(s[i] == 'I' || s[i] == 'l') ans += "1";else if(s[i] == 'O' || s[i] == 'o') ans += "0";else ans += s[i];}return ans;}int main(void){string s;cin >> s;cout << f(s) << endl;return 0;}