結果

問題 No.512 魔法少女の追いかけっこ
ユーザー ohana
提出日時 2023-10-27 10:29:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 319 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 82,024 KB
実行使用メモリ 80,276 KB
最終ジャッジ日時 2024-09-25 12:57:36
合計ジャッジ時間 7,727 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 46 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

import decimal

n, m = map(decimal.Decimal, input().split())
ns, ms = n / decimal.Decimal(3.6), m / decimal.Decimal(3.6)

n = int(input())
A = list(map(decimal.Decimal, input().split()))
ans = True
for i in range(n - 1):
    if A[i + 1] < A[i] / ns * ms:
        ans = False
        break
print("YES" if ans else "NO")
0