Submission

Status:

Compilation Error

Subtask/Task Score:

Score: 0

User: lupniexx

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

Language: cpp

Time: 0.000 second

Submitted On: 2025-09-25 17:01:43

#include<bits/stdc++.h>
#include<string>
using namespace std;
int main(){
    string x,y;
    int f[123]={0};
    cin >> x >> y;
    for(int i=0;i<x.length;i++){
        f[x[i]]++;
    }
    for(int i=0;i<y.length;i++){
        f[y[i]]++;
    }
    for(int i=0;i<123;i++){
        if(f[i]>1){
            cout << f[i] << " ";
        }
    }
}