4 solutions

  • 1
    @ 2025-1-21 9:50:05
    #include<bits/stdc++.h>
    using namespace std;
    const int N=25;
    int a[N];
    int main()
    {
    		string a;
    		char n;
    		cin>>a>>n;
    	
    			while(a.find(n)!=-1) 
    			{
    				a.erase(a.find(n),1);
    			}
    			cout<<a;
    	return 0;
    }
    

    Information

    ID
    104
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    33
    Accepted
    16
    Uploaded By