結果
| 問題 | No.564 背の順 |
| コンテスト | |
| ユーザー |
もぐら 3.0
|
| 提出日時 | 2023-11-13 20:22:02 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 259 bytes |
| 記録 | |
| コンパイル時間 | 160 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 52,480 KB |
| 最終ジャッジ日時 | 2024-09-26 03:24:31 |
| 合計ジャッジ時間 | 1,297 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 WA * 3 |
ソースコード
import bisect
H,N = map(int,input().split())
members = [int(input()) for _ in range(N-1)]
members.sort()
p = bisect.bisect_left(members,H)
if N-p==1:
print("1st")
elif N-p==2:
print("2nd")
elif N-p==3:
print("3rd")
else:
print(str(N-p)+"th")
もぐら 3.0