#33976: python解答


s11104220@school.saihs.edu.tw (施同學)

學校 : 臺北市立松山高級工農職業學校
編號 : 221254
來源 : [118.165.11.221]
最後登入時間 :
2024-02-04 16:09:17
b964. 1. 成績指標 -- 2016年3月apcs | From: [123.193.213.137] | 發表日期 : 2023-02-20 19:18

n=int(input())
sc=sorted(list(map(int,input().split(" "))))
print(*sc)
if sc[0]>=60:
    print("best case")
else:
    s=list(filter(lambda x:x<60,sc))[-1]
    print(s)
if sc[-1]<60:
    print("worst case")
else:
    s=list(filter(lambda x:x>=60,sc))[0]
    print(s)
 
ZeroJudge Forum