题目描述
知识点: hash
简单hash
#include<iostream>
#include<unordered_map>
using namespace std;
unordered_map<char,int> map;
int main(){
string s1,s2;
cin>>s1>>s2;
for(auto c : s2){
if(c >= 'a' && c <= 'z') c -= 32;
map[c] = 1;
}
for(auto c : s1){
if(c >= 'a' && c <= 'z') c -= 32;
if(map[c]==0){
cout<<c;
map[c] = 1;
}
}
return 0;
}