結果
| 問題 |
No.564 背の順
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-01 22:51:51 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 267 bytes |
| コンパイル時間 | 180 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-18 08:18:54 |
| 合計ジャッジ時間 | 1,105 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 WA * 3 |
ソースコード
h,n = map(int,input().split())
a = list()
a.append(h)
for i in range(n-1):
a.append(int(input()))
b = sorted(a, reverse=True).index(h)+1
if b == 1:
print(f'{b}st')
elif b == 2:
print(f'{b}nd')
elif b == 3:
print(f'{b}rd')
else:
print(f'{b}th')