Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. #include <string>
  4. #include <vector>
  5. #include <set>
  6. #include <algorithm>
  7. #include <bitset>
  8. typedef long long LL;
  9. using namespace std;
  10.  
  11. int main()
  12. {
  13.     int n,p,q;
  14.     vector<int> v;
  15.     int temp;
  16.     set<int> u;
  17.     cin>>n;
  18.     cin>>p;
  19.     for(int i=0;i<p;i++)
  20.     {
  21.         cin>>temp;
  22.         v.push_back(temp);
  23.     }
  24.     cin>>q;
  25.     for(int i=0;i<q;i++)
  26.     {
  27.         cin>>temp;
  28.         v.push_back(temp);
  29.     }
  30.     sort(v.begin(),v.end());
  31.     u.insert(v.begin(),v.end());
  32.     if(u.size()==n)
  33.         cout<<"I become the guy.";
  34.     else
  35.         cout<<"Oh, my keyboard!";
  36.     return 0;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement