forked from kactlabs/python-75-hackathon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathassin1.py
More file actions
22 lines (16 loc) · 873 Bytes
/
Copy pathassin1.py
File metadata and controls
22 lines (16 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
'''There is a contest with interactive problems where N people participate.
Each contestant has a known rating. Chef wants to know which contestants will not forget to flush the output in interactive problems.
Fortunately, he knows that contestants with rating at least r never forget to flush their output and contestants with rating smaller than r always forget to do it. Help Chef!
Input
The first line of the input contains two space-separated integers N and r.
Each of the following N lines contains a single integer R denoting the rating of one contestant.
Output
For each contestant, print a single line containing the string "Good boi" if this contestant does not forget to flush the output or "Bad boi" otherwise.
'''
N,r=map(int,input().split())
for i in range(N):
R=int(input())
if R>=r:
print("Good boi")
else:
print("Bad boi")