結果
| 問題 |
No.676 C0nvertPr0b1em
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-09-04 01:28:00 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 356 bytes |
| コンパイル時間 | 1,619 ms |
| コンパイル使用メモリ | 188,300 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-15 22:21:07 |
| 合計ジャッジ時間 | 2,675 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
int main() {
string S; cin >> S;
string ans = "";
for(int i = 0; i < (int)S.size(); i++){
if(S[i] != 'I' and S[i] != 'l' and S[i] != 'O' and S[i] != 'o'){
ans += S[i];
}else if(S[i] == 'I' or S[i] == 'l') ans += "1";
else ans += "0";
}
cout << ans << endl;
}