Submission
Status:
[PPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: Phat12
Problemset: สตริงซ้ำซ้ำ
Language: cpp
Time: 0.003 second
Submitted On: 2025-08-29 13:58:26
#include <bits/stdc++.h>
using namespace std;
bool check[100];
int main() {
string a,b;
cin >> a >> b;
for (auto &x : a) check[x]=1;
for (auto &x : b){
if (check[x]){
cout << x << ' ';
check[x]=0;
}
}
}