# 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
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up