#37076: python 紀錄3


BensonDC (python戰士)

學校 : 不指定學校
編號 : 240921
來源 : [1.175.217.87]
最後登入時間 :
2024-03-27 12:33:26
b964. 1. 成績指標 -- 2016年3月apcs | From: [36.238.105.93] | 發表日期 : 2023-08-20 20:17

n = int(input())
t = sorted([int(x) for x in input().split()])
print(*t)
BC = -1
WC = 101
for i in t:
    if i<60 and i>BC:BC=i
    elif i>=60 and i<WC:WC=i
if BC==-1:
    print("best case")
else:
    print(BC)
if WC==101:
    print("worst case")
else:
    print(WC)

 
ZeroJudge Forum