daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Dec 11th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top