Four seasons


Submit solution

Points: 2 (partial)
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type
Allowed languages
Java 19, Java 8

【修改自Guess Session】

下面是恰恰海岸村的四季溫度最高與最低温(攝氏)。

季節 最低溫 最高溫
Spring 18 23
Summer 27
Fall 24 26
Winter 17

請根據使用者輸入之當天氣溫,判斷今天應該是哪一個季節。
若輸入之溫度>50或<-10,則提醒使用者輸入錯誤。

輸入限制: 數字

Input

溫度(攝氏)

Output

季節

sample input & output

輸入 輸出
DataSet1 100 Error
DataSet2 25 Fall
DataSet3 45 Summer

Comments

There are no comments at the moment.