# APCS-2016/3 ## 觀念題 [完整官方題目](https://apcs.csie.ntnu.edu.tw/wp-content/uploads/2022/10/觀念題_題型範例.pdf) ## 實作題 [完整官方題目](https://apcs.csie.ntnu.edu.tw/wp-content/uploads/2022/10/實作題_題型範例.pdf) ### 1.成績指標 [Colab](https://colab.research.google.com/drive/1AbhXZg8xQlAgOQa1L_k2UN4RtX7OPNef#scrollTo=fzaPXq4cmxOa) ```python= number_of_people = int(input()) scores = sorted(list(map( int, input().split(' ') ))) # 第一行輸出 print(*scores) # 第二行 scores.reverse() if scores[-1] >= 60: print('best case') else: for score in scores: if score < 60: print(score) break # 第三行 scores.reverse() if scores[-1] < 60: print('worst case') else: for score in scores: if score >= 60: print(score) break ```