結果
| 問題 | No.564 背の順 | 
| コンテスト | |
| ユーザー |  kichion | 
| 提出日時 | 2020-07-14 18:07:50 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 318 bytes | 
| コンパイル時間 | 186 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-11-17 21:39:40 | 
| 合計ジャッジ時間 | 980 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 7 WA * 2 | 
ソースコード
H, N = input().split(' ')
nama_height, member_num = int(H), int(N)
heights = [int(input()) for _ in range(member_num - 1)]
rank = member_num - sum([1 for height in heights if nama_height > height])
suffix_num = rank%10
suffix = ['st', 'nd', 'rd'][suffix_num - 1] if suffix_num < 4 else 'th'
print(str(rank) + suffix)
            
            
            
        