View Code of Problem 55

#include<stdio.h>
#include<cstdlib>
#include<cmath>
#include<iostream>
#include<algorithm>
using namespace std;
typedef long long ll;
int main(){
       char a[10000];
	   char b;
	   char c[10000];
	     gets(a);
	     scanf("%c",&b);

	     int i=0,k=0;
	     while(a[i] !='\0'){
	     	if(a[i]==b) i++;
	     	else c[k++]=a[i++];
		 }
		  k='\0';
		 k=0;
		 puts(c);
	  return 0;
}

Double click to view unformatted code.


Back to problem 55