結果
| 問題 | No.564 背の順 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-02 12:50:37 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 64 ms / 2,000 ms |
| + 170µs | |
| コード長 | 211 bytes |
| 記録 | |
| コンパイル時間 | 250 ms |
| コンパイル使用メモリ | 96,496 KB |
| 実行使用メモリ | 78,848 KB |
| 最終ジャッジ日時 | 2026-08-02 01:44:39 |
| 合計ジャッジ時間 | 2,114 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)