PAT乙级1093
作者:互联网
#include<iostream>
#include<string>
using namespace std;
int main(){
string a,b,s;
getline(cin,a);
getline(cin,b);
int hash[1000]{0};
s=a+b;
for(int i=0;i<s.size();i++){
if(hash[s[i]]==0)cout<<s[i];
hash[s[i]]=1;
}
return 0;
}
标签:std,PAT,1093,int,cin,乙级,hash,include,getline 来源: https://blog.csdn.net/weixin_51928751/article/details/120962908