結果

問題 No.564 背の順
ユーザー miya145592miya145592
提出日時 2023-05-03 02:27:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 521 ms
コンパイル使用メモリ 87,312 KB
実行使用メモリ 71,644 KB
最終ジャッジ日時 2023-08-13 16:26:17
合計ジャッジ時間 2,128 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,332 KB
testcase_01 AC 71 ms
71,272 KB
testcase_02 AC 73 ms
71,620 KB
testcase_03 WA -
testcase_04 AC 70 ms
71,468 KB
testcase_05 AC 71 ms
71,392 KB
testcase_06 AC 71 ms
71,508 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 71 ms
71,468 KB
testcase_10 AC 71 ms
71,456 KB
testcase_11 AC 71 ms
71,572 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