Advertisement
Guest User

Untitled

a guest
Nov 19th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 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]++;
  12. if (a[n] == 1) {
  13. cout << "NO\n";
  14. } else {
  15. cout << "YES\n";
  16. }
  17. }
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement