結果
| 問題 | No.564 背の順 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2021-02-02 12:49:37 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 222 bytes | 
| コンパイル時間 | 157 ms | 
| コンパイル使用メモリ | 82,176 KB | 
| 実行使用メモリ | 52,480 KB | 
| 最終ジャッジ日時 | 2024-06-29 23:39:28 | 
| 合計ジャッジ時間 | 1,376 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 3 | 
| other | WA * 9 | 
ソースコード
m,n=map(int,input().split()) f=lambda:int(input()) h=[f() for i in range(n-1)] h+=[m] srt=sorted(h)[::-1] print(srt) r=srt.index(m)+1 bi='st' if r%10==1 else 'nd' if r%10==2 else 'rd' if r%10==3 else 'th' print(str(r)+bi)
