Submission

Status:

[PPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: Zailagend1

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

Language: cpp

Time: 0.002 second

Submitted On: 2026-06-25 19:05:28

#include <bits/stdc++.h>
using namespace std;
int main()
{
   
   string a,b;
   cin >> a;
   cin >> b;
   set<int> sigma2;
   for(char x:a){
       for(char y:b){
          if(x == y){
             sigma2.insert(x);
          }
       }
   }
   for(char x:sigma2){
      cout << x << " ";
   }
}