Submission
Status:
[PPPP-SSS]
Subtask/Task Score:
{0/100}
Score: 0
User: boygunner
Problemset: สตริงซ้ำซ้ำ
Language: cpp
Time: 0.002 second
Submitted On: 2026-09-30 21:18:42
#include<bits/stdc++.h>
using namespace std;
int main(){
string st1,st2;
cin>>st1>>st2;
int len1=st1.length();
int len2=st2.length();
for(int i=0;i<len1;i++)
{
for(int j=0;j<len2;j++)
{
if(st1[i]==st2[j]){
cout<<st1[i]<<' ';
break;
}
}
}
}