score finder


Submit solution

Points: 40 (partial)
Time limit: 1.0s
Memory limit: 256M

Authors:
Problem types

題目說明

請設計一程式,允許使用者輸入一連串成績,最後分別輸出

最高分最低分平均分數(取到小數第二位)

若輸出超過範圍(0.0 - 100.0),則輸出out of range!,並結束程式

輸入限制

輸入成績一定大於等於一筆

整數與小數,範圍介於(0.0 - 100.0),超出範圍則做出上述處理

輸入

先輸入有幾個成績,再依序輸入成績

輸出

統一輸出至小數第二位

最高分、最低分、平均分數

若輸出超出範圍:

out of range!

測試資料0 輸入

5 10 30 50 80 90

測試資料0 輸出

90.00 10.00 52.00

測試資料1 輸入

3 20 -1 300

測試資料1 輸出

out of range!

測試資料2 輸入

3 61.2 98.4 55.3

測試資料2 輸出

98.40 55.30 71.63

Comments

There are no comments at the moment.