can you fix the score system?


Submit solution

Points: 50 (partial)
Time limit: 5.0s
Memory limit: 256M

Authors:
Problem type

題目說明

統一使用int即可

有一成績系統,可以使學生輸入考試成績,輸入完畢輸入0後,系統會輸出學生考過幾場試高於60分的有幾科以及加總起來總共幾分,但這個系統前陣子颱風來襲把它給毀了,系上教授看上你的程式能力給你機會表現,請你把它復原回來,並基於原本有的功能再額外輸出及格分數的平均高於90分的科目數也標示出來,你能回應教授給你的期待嗎?

輸入限制: 均>=0

輸入

成績(0<成績<=100, 輸入0表結束輸入)

輸出

考試次數\n高於60分有幾科\n所有成績加總分\n高於60分的加總平均\n高於90分的科目數

sample input1

30 60 90 50 20 66 78 10 0

sample output1

8
4
404
73
1

sample input2

10 0

sample output2

1
0
10
0
0

Comments

There are no comments at the moment.