#include<bits/stdc++.h> using namespace std; typedef long long ll; int main (){ char str[1010], ch; gets(str); scanf("%c", &ch); for(int i = 0;i < strlen(str);i++){ if(ch!=str[i]) printf("%c", str[i]); } return 0; } |
Double click to view unformatted code.