結果

問題 No.564 背の順
ユーザー Ohnuma
提出日時 2020-04-09 13:38:31
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 333 bytes
コンパイル時間 142 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-13 06:18:18
合計ジャッジ時間 1,052 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

h,n = map(int,input().split())
H = [int(input()) for _ in range(n-1)]
H.append(h)
H.sort(reverse=True)
for i in range(n):
    if H[i]==h:
        if i==0:
            print('1st')
        elif i==1:
            print('2nd')
        elif i==2:
            print('3rd')
        else:
            print('{}th'.format(i+1))
        break
0