Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- #define ll long long int
- #define MX 100010
- ll max(ll a, ll b)
- {
- if(a > b)
- return a;
- return b;
- }
- ll power(ll a,ll b)
- {
- if(b==0)
- return 1;
- ll x = power(a,b/2);
- if(b%2)
- return x*x*a;
- return x*x;
- }
- int main()
- {
- int n,r;
- cin>> n >> r;
- int ar[n];
- for(int i=0; i<n; i++){
- cin>>ar[i];
- if(ar[i] >=r )
- cout<<"Good boi"<<endl;
- else
- cout<<"Bad boi"<<endl;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment