![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/efd55572f75adc0512775910824b5a21.png)
题目地址
#include<cstdio>
#include<iostream>
#include<string>
#include<map>
using namespace std;
int main(void)
{
string s1,s2;
map<char,bool>mp;
getline(cin,s1);
getline(cin,s2);
for(int i=0;i<s2.size();i++) s2[i]=toupper(s2[i]),mp[s2[i]]=true;
for(int i=0;i<s1.size();i++)
{
s1[i]=toupper(s1[i]);
if(!mp[s1[i]])
{
cout<<s1[i],mp[s1[i]]=true;
}
}
return 0;
}
#include<cstdio>
#include<iostream>
#include<map>
#include<string>
using namespace std;
map<char,int>mp;
int main(void)
{
string a,b;
cin>>a>>b;
for(int i=0;i<b.size();i++) b[i]=toupper(b[i]),mp[b[i]]=1;
for(int i=0;i<a.size();i++)
{
a[i]=toupper(a[i]);
if(!mp[a[i]]) cout<<a[i],mp[a[i]]=1;
}
return 0;
}