結果
| 問題 | No.564 背の順 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-30 16:22:02 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 25 ms / 2,000 ms |
| + 67µs | |
| コード長 | 231 bytes |
| 記録 | |
| コンパイル時間 | 52 ms |
| コンパイル使用メモリ | 14,720 KB |
| 実行使用メモリ | 11,520 KB |
| 最終ジャッジ日時 | 2026-10-15 19:39:30 |
| 合計ジャッジ時間 | 1,768 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
x,n=map(int,input().split())
h=[x]+[int(input()) for _ in range(n-1)]
h.sort()
a=n-h.index(x)
if a%10==1:
print(str(a)+'st')
elif a%10==2:
print(str(a)+'nd')
elif a%10==3:
print(str(a)+'rd')
else:
print(str(a)+'th')