#35210: 可以這樣嗎(題解)


1450840-0@g.puiching.edu.mo (肥余好朋友)

學校 : 不指定學校
編號 : 188719
來源 : [202.86.172.163]
最後登入時間 :
2024-03-18 13:39:58
h572. 蝸牛的星座 -- 板橋高中教學題 | From: [60.246.175.170] | 發表日期 : 2023-05-16 18:37

m, d = map(int, input().split())

if (m == 3 and d >= 21) or (m == 4 and d <= 20):
    print("Aries")
elif (m == 4 and d >= 21) or (m == 5 and d <= 21):
    print("Taurus")
elif (m == 5 and d >= 22) or (m == 6 and d <= 21):
    print("Gemini")
elif (m == 6 and d >= 22) or (m == 7 and d <= 22):
    print("Cancer")
elif (m == 7 and d >= 23) or (m == 8 and d <= 21):
    print("Leo")
elif (m == 8 and d >= 22) or (m == 9 and d <= 23):
    print("Virgo")
elif (m == 9 and d >= 24) or (m == 10 and d <= 23):
    print("Libra")
elif (m == 10 and d >= 24) or (m == 11 and d <= 22):
    print("Scorpio")
elif (m == 11 and d >= 23) or (m == 12 and d <= 22):
    print("Sagittarius")
elif (m == 12 and d >= 23) or (m == 1 and d <= 20):
    print("Capricorn")
elif (m == 1 and d >= 21) or (m == 2 and d <= 19):
    print("Aquarius")
else:
    print("Pisces")
 
ZeroJudge Forum