Advertisement
Guest User

Untitled

a guest
Nov 19th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4. #include <algorithm>
  5. #include <map>
  6. using namespace std;
  7. int main() {
  8. int n;
  9. map<int, int> a;
  10. while (cin >> n) {
  11. a[n] = 1;
  12. }
  13. cout << a.size();
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement