View Code of Problem 55

#include "stdlib.h"
#include "algorithm"
#include "iostream"
#include <cstdio>
#include "string"
#include <iomanip>
#include <map>
#include "math.h"
using namespace std;
map<int, bool> mp;


int main()
{
	string str; getline(cin,str);
	char x; cin >> x;
	int len = str.length();
	for (int i = 0; i < len; i++)
	{
		if (str[i] != x)cout << str[i];
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 55