Advertisement
Alexandre_lsv

Untitled

Feb 22nd, 2016
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <set>
  4. using namespace std;
  5. int main(int argc, char *argv[])
  6. {
  7.     set<long long> numbers;
  8.     long long a;
  9.     bool b=false;
  10.     do{
  11.         cin >> a;
  12.         if (numbers.count(a)) b=true;
  13.         numbers.insert(a);
  14.     }
  15.     while (a!=0);
  16.  
  17.     cout << (b?"Yes":"No");
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement