結果

問題 No.564 背の順
ユーザー tarotaro789
提出日時 2018-03-01 01:30:28
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-12-23 05:50:18
合計ジャッジ時間 1,095 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

wai,nin=input().split()
ls=[]
for i in range(int(nin)-1):
    ls.append(input())
ls.append(wai)
ls=list(map(int,ls))
ls.sort()
ls.reverse()
ans=ls.index(int(wai))+1
if ans==1:
    print("1st")
elif ans==2:
    print("2nd")
elif ans==3:
    print("3rd")
else:
    print(str(ans)+"th")
0