MohamedAbdel3al

A. I Wanna Be the Guy

Oct 1st, 2021 (edited)
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std ;
  4. #define sz(s) int(s.size())
  5. #define all(s) s.begin() , s.end()
  6. #define getline(s) getline(cin >> ws, s)
  7. #define cin(v) for (auto& i : v) cin >> i ;
  8. #define pb(x) push_back(x)
  9. #define ll long long
  10. #define ull unsigned long long
  11. #define Mod 1'000'000'007
  12. #define INF 2'000'000'000
  13. #define Num_of_Digits(n) ((int)log10(n)+1)
  14. #define fixed(n) fixed << setprecision(n)
  15. #define imin INT_MIN
  16. #define imax INT_MAX
  17. #define Time cerr << "Time Taken: " << (float)clock() / CLOCKS_PER_SEC << " Secs" << "\n" ;
  18.  
  19.  
  20. void ABDEL3AL () {
  21. ios_base::sync_with_stdio(false); cin.tie(nullptr) , cout.tie(nullptr) ;
  22. #ifndef ONLINE_JUDGE
  23. freopen("input.txt" , "r" , stdin) , freopen("output.txt" , "w" , stdout) ;
  24. #endif
  25. Time
  26. }
  27.  
  28.  
  29. int main() {
  30. ABDEL3AL() ;
  31. int t = 1 ;
  32. //cin >> t ;
  33. while (t--) {
  34. int n ;
  35. cin >> n ;
  36. set < int > lvl ;
  37. int n1 , n2 ;
  38. cin >> n1 ;
  39. vector < int > v1(n1) ;
  40. cin(v1) ;
  41. cin >> n2 ;
  42. vector < int > v2(n2) ;
  43. cin(v2) ;
  44. lvl.insert(v1.begin() , v1.end()) , lvl.insert(v2.begin() , v2.end()) ;
  45. bool pass = true ;
  46. for (int i = 1; i <= n; i++) {
  47. if (lvl.find(i) == lvl.end()) pass = false ;
  48. break ;
  49. }
  50. cout << (pass ? "I become the guy." : "Oh, my keyboard!") ;
  51. }
  52.  
  53. return 0;
  54. }
Add Comment
Please, Sign In to add comment