結果
| 問題 | No.564 背の順 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2023-05-03 02:27:44 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 240 bytes | 
| コンパイル時間 | 288 ms | 
| コンパイル使用メモリ | 82,316 KB | 
| 実行使用メモリ | 53,688 KB | 
| 最終ジャッジ日時 | 2024-11-21 12:29:24 | 
| 合計ジャッジ時間 | 1,594 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 6 WA * 3 | 
ソースコード
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")
            
            
            
        