12345

h2022002 2023-10-14 17:35:40

#include <bits/stdc++.h> using namespace std; long long a[150], b[150], c[150]; int main() { set s; int n, x; for (int i = 1; i <= n; i++) { cin >> x; s.insert(x); } cout << s.size() << endl; for (int i = 1; i <= n; i++) { cout << s[i]; } return 0; }