Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <set>
- using namespace std;
- int main(int argc, char *argv[])
- {
- set<long long> numbers;
- long long a;
- bool b=false;
- do{
- cin >> a;
- if (numbers.count(a)) b=true;
- numbers.insert(a);
- }
- while (a!=0);
- cout << (b?"Yes":"No");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement