Guest User

Untitled

a guest
Dec 11th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long int
  4. #define MX 100010
  5.  
  6. ll max(ll a, ll b)
  7. {
  8. if(a > b)
  9. return a;
  10. return b;
  11. }
  12.  
  13. ll power(ll a,ll b)
  14. {
  15. if(b==0)
  16. return 1;
  17. ll x = power(a,b/2);
  18.  
  19. if(b%2)
  20. return x*x*a;
  21. return x*x;
  22. }
  23.  
  24. int main()
  25. {
  26. int n,r;
  27. cin>> n >> r;
  28.  
  29. int ar[n];
  30. for(int i=0; i<n; i++){
  31. cin>>ar[i];
  32.  
  33. if(ar[i] >=r )
  34. cout<<"Good boi"<<endl;
  35. else
  36. cout<<"Bad boi"<<endl;
  37. }
  38.  
  39. return 0;
  40. }
Add Comment
Please, Sign In to add comment