Submission
Status:
[P-SSSSSS]
Subtask/Task Score:
{0/100}
Score: 0
User: Quinruj
Problemset: สตริงซ้ำซ้ำ
Language: cpp
Time: 0.003 second
Submitted On: 2025-09-17 20:03:59
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
string a,b;cin>>a>>b;
unordered_map<char,bool> mp;
for (auto i : a){
mp[i] = true;
}
for (auto i : b){
if (mp[i]) cout << i << ' ';
}
}