NOJ/58/main.c
Saturneric 52668c4122 Add.
2020-09-01 00:46:43 +08:00

13 lines
260 B
C

#include <stdio.h>
int main(void){
char string[1024], ch[2];
int i,count = 0;
while((ch[0] = getchar()) != '\n') string[count++] = ch[0];
scanf("%s",ch);
for(i = 0; i < count; i++)
if(string[i] != ch[0]) putchar(string[i]);
printf("\n");
return 0;
}