結果

問題 No.564 背の順
ユーザー knt3110knt3110
提出日時 2018-05-13 23:27:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 309 bytes
コンパイル時間 254 ms
コンパイル使用メモリ 10,560 KB
実行使用メモリ 8,000 KB
最終ジャッジ日時 2023-09-10 19:38:35
合計ジャッジ時間 1,245 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

h,n=(int(i) for i in input().split())
hlist=list(int(input()) for i in range(n-1))

count=1
for i in range(len(h)):
    if h<hlist[i]:
        count+=1

if count==1:
    print(str(count)+'st')
elif count==2:
    print(str(count)+'nd')
elif count==3:
    print(str(count)+'rd')
else:
    print(str(count)+'th')
0