結果

問題 No.564 背の順
ユーザー なかおん
提出日時 2017-09-13 22:35:37
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 296 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-07 20:06:37
合計ジャッジ時間 1,053 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

i = input().rstrip().split(" ") #取得

#身長0 人数i[1] - 1

n = 0

for k in range(int(i[1]) - 1):
    s = input()
    if int(i[0]) < s:
        n += 1

if n == 0:
    print("1st")

elif n == 1:
    print("2nd")

elif n == 2:
    print("3rd")

else:
    m = n + 1
    print(str(m) + "th") 

0