Skip to content

Instantly share code, notes, and snippets.

@fredbr
Created June 19, 2018 23:32
Show Gist options
  • Save fredbr/39a3d0376c01d31f1dd28b242ac3190d to your computer and use it in GitHub Desktop.
Save fredbr/39a3d0376c01d31f1dd28b242ac3190d to your computer and use it in GitHub Desktop.
//solucao de davi gabriel (modificada)
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, al, ans = 0;
cin >> n;
set<int> mark;
for(int i = 0; i < n; i++){
cin >> al;
mark.insert(al);
}
cout << mark.size() << "\n";
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment