mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-26 05:51:59 +00:00
22 lines
263 B
C++
22 lines
263 B
C++
|
#include <bits/stdc++.h>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
int main() {
|
||
|
string s;
|
||
|
cin >> s;
|
||
|
|
||
|
char op;
|
||
|
cin >> op;
|
||
|
|
||
|
for (char c : s) {
|
||
|
if (c != op) {
|
||
|
cout << c;
|
||
|
} else {
|
||
|
cout << '#';
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|