백준 풀이/파이썬(Python)

백준 20673 파이썬 - Covid-19

콘스_ 2023. 9. 9. 15:35
# Covid-19
p = int(input()) # 신규 확진 수의 평균
q = int(input()) # 신규 입원 수의 평균
if p<=50 and q<=10:
  print("White")
elif q>30:
  print("Red")
else:
  print("Yellow")

most는 이상이고, more은 초과인걸 명심하자.