結果
問題 |
No.564 背の順
|
ユーザー |
|
提出日時 | 2019-09-25 09:46:28 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 2,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 158 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-21 19:33:39 |
合計ジャッジ時間 | 1,375 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 |
ソースコード
f1,num=map(int,input().split()) fL=[f1] for x in range(num-1): fL.append(int(input())) B={a:i+1 for (i,a) in enumerate(sorted(fL,reverse=True))} r=str(B[f1]) if r[-1:]=='1': print(r+"st") elif r[-1:]=='2': print(r+"nd") elif r[-1:]=='3': print(r+"rd") else: print(r+"th")