結果

問題 No.564 背の順
ユーザー kamomekamome
提出日時 2020-05-20 20:45:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-04-09 23:06:00
合計ジャッジ時間 1,061 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

H,N=map(int,input().split())
L_H=[]
for i in range(N-1):
    L_H.append(int(input()))

L_H.sort(reverse=True)
postfix=["th","st","nd","rd","th","th","th","th","th","th","th"]
for i in range(len(L_H)):
    if L_H[i] < H:
        break

i=i+1
p=postfix[int(str(i)[-1])]
print(str(i)+p)
0