1
2
3
4
5
6
7
8
9
10
11
|
while 1:
a,b,c=input().split()
a,b,c=float(a),int(b),int(c)
if a==0 and b==0 and c==0: break
tmp=[]
chk=0
if a<=4.5 and b>= 150 and c>=200: tmp.append("Wide Receiver"); chk=1
if a<=6.0 and b>= 300 and c>=500: tmp.append("Lineman"); chk=1
if a<=5.0 and b>= 200 and c>=300: tmp.append("Quarterback"); chk=1
if chk==0 : tmp.append("No positions")
print(*tmp)
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
[백준] 5692 (0) | 2021.03.16 |
---|---|
[백준] 4909 (0) | 2021.03.16 |
[백준] 4714 (0) | 2021.03.16 |
[백준] 4635 (0) | 2021.03.12 |
[백준] 20976 (0) | 2021.03.12 |
댓글