a057: Season Determination 季節判定
標籤 : 流程控制
通過比率 : 95% (19 人 / 20 人 ) (非即時)
評分方式 :
Tolerant

最近更新 : 2019-04-09 08:58

內容

Try writing a program to enter the month and then determine the season to which it belongs. (March to May is spring, June to August is summer, September to November is autumn, and December to February is winter.)

試撰寫一程式,可輸入月份,然後判斷其所屬的季節(3~5月為春季,6~8月為夏季,9~11月為秋季,12~2月為冬季)。

輸入說明

Input a positive integer n (0 < n < 10) to the first row, which means the number of testing data is n.

Each testing data is the input month.

 

第一列輸入一個正整數 n (0 < n < 10),代表有 n筆測資。

每筆測資為輸入月份

輸出說明

The output is the season of the input month, where Spring is from March to May, Summer is from June to August, Autumn is from September to November, and Winter is from December to February. Please note that there must be a newline character at the end of the output.

 

輸出該月份的季節,3~5月為春季(Spring),6~8月為夏季(Summer),9~11月為秋季(Autumn),12~2月為冬季(Winter)。最後必須有換行字元。

範例輸入
2
3
10
範例輸出
Spring
Autumn
測資資訊 :
記憶體限制 : 64 MB
隱藏 測資點#0 (33%): 1.0s , <1K
隱藏 測資點#1 (33%): 1.0s , <1K
隱藏 測資點#2 (34%): 1.0s , <1K
提示 :
標籤:
流程控制
出處:
ITSA_56th [編輯 :
shengZJ (shengZJ)
]


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