#37865: 只有80請問哪裡可以改進


wayne0922538986@gmail.com (4 14)

學校 : 不指定學校
編號 : 231150
來源 : [112.78.74.180]
最後登入時間 :
2023-10-15 15:52:40
b964. 1. 成績指標 -- 2016年3月apcs | From: [112.78.74.180] | 發表日期 : 2023-10-14 19:53

students = int(input())
score = sorted(list(map(int,input().split(" "))))
print(*score)
if min(score)>=60:
 print('best case')
else:
 for i in range(59,-1,-1):
  if i in score:
   print(i)
   break
if max(score)< 60:
 print('worst case')
elif:
 for i in range(60,100):
  if i in score:
   print(i)
   break
   

 
#37866: Re: 只有80請問哪裡可以改進


asnewchien@gmail.com (david)

學校 : 不指定學校
編號 : 68108
來源 : [114.42.180.252]
最後登入時間 :
2024-05-17 15:04:41
b964. 1. 成績指標 -- 2016年3月apcs | From: [122.117.95.179] | 發表日期 : 2023-10-14 20:33

你這樣同樣的分數會印幾次。

 

 
ZeroJudge Forum