結果

問題 No.564 背の順
ユーザー superzugansuperzugan
提出日時 2019-07-16 15:21:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 201 bytes
コンパイル時間 701 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 8,000 KB
最終ジャッジ日時 2023-08-20 18:08:40
合計ジャッジ時間 1,091 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

x,n=map(int,input().split())
lst=sorted(int(input()) for _ in range(n-1))[::-1]
for i,j in enumerate(lst):
    if x>=j and i<3 :print(str(i+1)+["st","nd","rd"][i]);break      
else:print(str(i+2)+"th")
0