Submission

Status:

[PPPP-SSS]

Subtask/Task Score:

{0/100}

Score: 0

User: IKKIWPR

Problemset: สตริงซ้ำซ้ำ

Language: cpp

Time: 0.003 second

Submitted On: 2026-10-07 21:38:21

#include <bits/stdc++.h>
using namespace std;
int main(){
    string s1 , s2;
    cin >> s1 >> s2;
    for (int i =0;i < s1.length();i++){
        for (int j=0;j<s2.length() ;j++){
            if (s1[i] == s2[j]) {
                cout << s1[i] << " ";
                break;
            }
        }
    }
    return 0;
}