1 solutions

  • 0
    @ 2025-3-3 16:33:48

    C :

    #include <stdio.h>
    int main()
    {
    	char str[100];
    	char c;
    	int k=0;
    	while((str[k]=getchar())!='\n')
    		k++;
    	str[k]='\0';
    	c=getchar();
    	for(int i=0;str[i]!='\0';i++)
    		if(str[i]!=c)
    		printf("%c",str[i]);
    	return 0;
    }
    
    

    Python :

    a=input()
    b=input()
    c=a.replace(b,"")
    print(c)
    
    • 1

    Information

    ID
    10728
    Time
    1000ms
    Memory
    16MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By