結果

問題 No.564 背の順
ユーザー miya145592miya145592
提出日時 2023-05-03 02:27:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 333 ms
コンパイル使用メモリ 82,008 KB
実行使用メモリ 54,452 KB
最終ジャッジ日時 2024-05-01 09:12:53
合計ジャッジ時間 1,455 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,568 KB
testcase_01 AC 35 ms
52,396 KB
testcase_02 AC 37 ms
53,728 KB
testcase_03 WA -
testcase_04 AC 35 ms
53,816 KB
testcase_05 AC 37 ms
52,344 KB
testcase_06 AC 39 ms
52,644 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 38 ms
52,220 KB
testcase_10 AC 38 ms
52,152 KB
testcase_11 AC 37 ms
53,680 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

H, N = map(int, input().split())
ans = 1
for _ in range(N-1):
    h = int(input())
    if H<h:
        ans+=1
if ans==1:
    print(f"{ans}st")
elif ans==2:
    print(f"{ans}nd")
elif ans==3:
    print(f"{ans}rd")
else:
    print(f"{ans}th")
0