a080: Consellations 星座
標籤 :
通過比率 : 100% (3 人 / 3 人 ) (非即時)
評分方式 :
Tolerant

最近更新 : 2020-04-16 12:03

內容

Some birthdays are given,  please determine their corresponding constellations.

給你數組生日,請判斷此生日屬於哪個星座 ?

星座參考資料:

牡羊座 Aries 03/21 - 04/19 金牛座 Taurus 04/20 - 05/20

 

雙子座 Gemini 05/21 - 06/21 巨蟹座 Cancer 06/22 - 07/22

 

獅子座 Leo 07/23 - 08/22 處女座 Virgo 08/23 - 09/22

 

天秤座 Libra 09/23 - 10/23 天蠍座 Scorpio 10/24 - 11/22

 

射手座 Sagittarius 11/23 - 12/21 摩羯座 Capricorn 12/22 - 01/19

 

水瓶座 Aquarius 01/20 - 02/18 雙魚座 Pisces 02/19 - 03/20

輸入說明

The first integer n represents the number of test sets.

Each test set includes two numbers separated by a space, the first for the month, and the second for the date.

輸入的第一個整數 n ,代表有 n 筆資料。接下來的 n 組整數代表生日的日期,第一個數字代表月份,第二個數字代表日期,兩數字之間由空格隔開。

輸出說明

Output the corresponding constellation.

輸出對應的星座。

範例輸入
4
2 22
5 21
6 15
9 17
範例輸出
Pisces
Gemini
Gemini
Virgo
測資資訊 :
記憶體限制 : 64 MB
隱藏 測資點#0 (100%): 1.0s , <1K
提示 :
標籤:
出處:
[編輯 :
shengZJ (shengZJ)
]


編號 身分 題目 主題 人氣 發表日期
沒有發現任何「解題報告」