結果
| 問題 | No.564 背の順 | 
| コンテスト | |
| ユーザー |  motor_radial | 
| 提出日時 | 2019-08-04 12:19:29 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 299 bytes | 
| コンパイル時間 | 66 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-07-08 00:26:49 | 
| 合計ジャッジ時間 | 952 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 6 WA * 3 | 
ソースコード
H,N=map(int,input().split())
X=[0]*N
X[0]=H
for _ in range(1,N):
    X[_]=int(input())
X.sort(reverse=True)
for i in range(N):
    if H==X[i]:
        if i==0: print("1st");exit()
        elif i==1: print("2nd");exit()
        elif i==2: print("3rd");exit()
        else: print(str(i+1)+"th");exit()
            
            
            
        