ABC085B - Kagami Mochi
#include <iostream> #include <set> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) int main(void) { int n, d; set<int> se; cin.tie(0); ios::sync_with_stdio(false); cin >> n; REP(i, n) { cin >> d; se.insert(d); } cout << se.size() << "\n"; return 0; }