2025年1月14日 星期二

apcs 成績指標

  # 成績指標

n = int(input())

d = [int(i) for i in input().split()]

d.sort()

print(*d)


hashighlost = False

for i in d[::-1]:

  if i<60:

    print(i)

    hashighlost = True

    break

if hashighlost == False:print('best case')


haslowpass = False

for i in d:

  if i>=60:

    print(i)

    haslowpass = True

    break

if haslowpass == False:print('worst case')


# STDIN

# 2

# 73 83


# Output:

# 73 83

# best case

# 73

沒有留言:

張貼留言