旧键盘
#include <iostream>
using namespace std;
int main()
{
string right, wrong;
cin >> right >> wrong;
int len1 = right.size(), len2 = wrong.size();
int *ch = new int[len1 - len2+1];
for (int i = 0; i < len1; i++)
right[i] = toupper(right[i]);
for (int i = 0; i < len2; i++)
wrong[i] = toupper(wrong[i]);
int k = 0;
bool flag;
for (int i = 0; i < len1; i++)
{
flag = false;
for (int j = 0; j < len2; j++)
if (wrong[j]==right[i])
{
flag = true;
break;
}
if (!flag)
ch[k++]=static_cast<int>(right[i]);
}
for(int i=0;i<k-1;i++)
for(int j=i+1;j<k;j++)
if(ch[i]==ch[j])
ch[j]=-1;
for(int i=0;i<k;i++)
if(ch[i]!=-1)
printf("%c",ch[i]);
}