結果
| 問題 |
No.564 背の順
|
| コンテスト | |
| ユーザー |
kichion
|
| 提出日時 | 2020-07-14 18:03:20 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 285 bytes |
| コンパイル時間 | 221 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-17 21:24:14 |
| 合計ジャッジ時間 | 1,214 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 WA * 3 |
ソースコード
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 = ['st', 'nd', 'rd'][rank - 1] if rank < 4 else 'th'
print(str(rank) + suffix)
kichion