Submission

Status:

----------

Subtask/Task Score:

0/100

Score: 0

User: Mocha_nb

Problemset: อนุกรม

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-07 21:23:04

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


int main(){
    int cnt2[200] = {0};
    int cnt1[200] = {0};
    string ch1,ch2;
    cin >> ch1 >> ch2;
    for(char c:ch1){
        cnt1[c]++;
    }
    for(char c:ch2){
        cnt2[c]++;
    }
    for(int i = 0;i<200;i++){
        if((cnt1[i] && cnt2[i]) == 0){
            continue;
        }else{cout << char(i) << ' ';}
    }

}