提交时间:2025-03-15 14:31:55

运行 ID: 312758

#include<bits/stdc++.h> using namespace std; bool f[150]; int main(){ string a, b, s; cin>>a>>b; s=a+b; for(int i=0; i<s.size(); i++) f[s[i]]=1; for(int i=0; i<s.size(); i++){ if(f[s[i]]){ f[s[i]]=0; cout<<s[i]; } } return 0; }