結果
問題 |
No.564 背の順
|
ユーザー |
|
提出日時 | 2021-12-06 21:05:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 239 bytes |
コンパイル時間 | 150 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-07 09:31:34 |
合計ジャッジ時間 | 983 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 WA * 3 |
ソースコード
p,n=map(int,input().split()) l=[int(input()) for x in range(n-1)] l.append(p) nl=sorted(l,reverse=True) a=str(nl.index(p)+1) if a=="1": print(a+"st") elif a=="2": print(a+"nd") elif a=="3": print(a+"rd") else: print(a+"th")