結果
問題 |
No.564 背の順
|
ユーザー |
|
提出日時 | 2021-02-02 12:50:37 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 43 ms / 2,000 ms |
コード長 | 211 bytes |
コンパイル時間 | 157 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 52,480 KB |
最終ジャッジ日時 | 2024-06-29 23:39:29 |
合計ジャッジ時間 | 1,203 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 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] 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)