#12741: c++ AC code


bert30702 (bert30702)

學校 : 臺北市立成功高級中學
編號 : 62008
來源 : [223.197.10.194]
最後登入時間 :
2025-08-05 02:15:39

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

int main(){
    string a, b;
    while(cin >> a >> b){
        unordered_map<char, int> x, y;
        for(auto it: a) x[it]++;
        for(auto it: b) y[it]++;
        cout << (x == y ? "yes\n" : "no\n");
    }
}