結果

問題 No.564 背の順
ユーザー OhnumaOhnuma
提出日時 2020-04-09 13:38:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 333 bytes
コンパイル時間 405 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 7,944 KB
最終ジャッジ日時 2023-10-11 07:07:36
合計ジャッジ時間 1,120 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,916 KB
testcase_01 AC 16 ms
7,812 KB
testcase_02 AC 16 ms
7,824 KB
testcase_03 WA -
testcase_04 AC 16 ms
7,844 KB
testcase_05 AC 16 ms
7,848 KB
testcase_06 AC 16 ms
7,824 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 15 ms
7,924 KB
testcase_10 AC 16 ms
7,908 KB
testcase_11 AC 16 ms
7,860 KB
権限があれば一括ダウンロードができます

ソースコード

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