python-algorithm

[백준] 4758

무적김두칠 2021. 3. 16. 09:45

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
반응형