#include <iostream> #include <algorithm> #include <unordered_set> using namespace std; int main() { int n; cin >> n; string str = to_string(n); reverse(str.begin(), str.end()); unordered_set<char> set; string res; for (auto c : str) { ...