Submission

Status:

[PPPP-SSS]

Subtask/Task Score:

{0/100}

Score: 0

User: chs_14

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-11-30 09:06:21

#include <bits/stdc++.h>
using namespace std;

int main() {
    cin.tie(0)->sync_with_stdio(0);

    string str1, str2;
    cin >> str1 >> str2;

    for (char &c : str1)
    {
        for (char &d : str2)
        {
            if (c==d) {
                cout << c << ' ';
                break;
            }
        }

    }

}