Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <vector>
- #include <algorithm>
- #include <map>
- using namespace std;
- int main() {
- int n;
- map<int, int> a;
- while (cin >> n) {
- a[n] = 1;
- }
- cout << a.size();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement