結果

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

テストケース

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

ソースコード

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(hlist)):
    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