考察ASCII码
#include<bits/stdc++.h>
using namespace std;
int main(){
string good;
string bad;
getline(cin,good);
getline(cin,bad);
bool goodkey[1000]={false};
for(int i=0;i<bad.size();i++){
int temp = bad[i]-'0';
if(temp>=49){
temp-=32;
}
goodkey[temp]=true;
}
for(int i=0;i<good.size();i++){
int temp = good[i]-'0';
if(temp>=49){
temp-=32;
}
if(goodkey[temp]==false){
goodkey[temp] =true;
char c=temp+'0';
cout<<c;
}
}
return 0;
}