結果
| 問題 | No.564 背の順 |
| コンテスト | |
| ユーザー |
osrgy01
|
| 提出日時 | 2021-01-07 10:16:57 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 250 bytes |
| 記録 | |
| コンパイル時間 | 133 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-07 23:57:39 |
| 合計ジャッジ時間 | 1,210 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 WA * 3 |
ソースコード
import bisect
h,n=map(int,input().split())
s=sorted(int(input()) for _ in range(n-1))
t=len(s)-bisect.bisect_right(s,h)+1
if t==1:
print(str(t)+'st')
elif t==2:
print(str(t)+'nd')
elif t==3:
print(str(t)+'rd')
else:
print(str(t)+'th')
osrgy01