結果

問題 No.564 背の順
ユーザー jukaizzz
提出日時 2018-02-26 21:26:41
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 284 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-24 19:51:54
合計ジャッジ時間 1,105 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

nama, N = map(int, input().split())
rank = 1
for i in range(N-1):
    cm = int(input())
    if nama < cm:
        rank += 1
if rank.endswith(1):
    print(rank +"st")
elif rank.endswith(2):
    print(rank +"nd")
elif rank.endswith(3):
    print(rank +"rd")
else:
    print(rank +"th")
0