Submission
Status:
[PPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: s0m30n3
Problemset: สตริงซ้ำซ้ำ
Language: cpp
Time: 0.004 second
Submitted On: 2025-09-18 21:31:30
#include <iostream>
#include <unordered_map>
using namespace std;
int main(){
string s1,s2;
cin >> s1 >> s2;
unordered_map<char,int> coutedTables = {};
for (char c : s1){
for (char l : s2){
if (c == l){
coutedTables[c]++;
}
}
}
for (auto p=coutedTables.begin();p!=coutedTables.end();p++){
cout << p->first << " ";
}
}