---
# System prepended metadata

title: 13939 - I2P(II) 2023_Yang_final_Bonus
tags: [STL]

---

# 13939 - I2P(II) 2023_Yang_final_Bonus
>author: Utin
###### tags: `STL`

---

## Brief
See the code below

## Solution 0

```cpp=
#include <bits/stdc++.h>

int main() {
    int n, input;
    std::set<std::multiset<int>> table, ans;
    std::cin >> n;
    while (n--) {
        std::cin >> input;
        std::multiset<int> tmp;
        while (input) {
            tmp.insert(input % 10);
            input /= 10;
        }
        if (table.find(tmp) == table.end()) table.insert(tmp);
        else ans.insert(tmp);
    }
    for (auto it : ans) {
        for (auto num : it) std::cout << num;
        std::cout << '\n';
    }
}

// By Utin
```

## Reference