結果

問題 No.512 魔法少女の追いかけっこ
ユーザー akitsugu777
提出日時 2019-07-09 16:00:41
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 245 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-10-12 06:23:52
合計ジャッジ時間 2,956 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 47 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

x, y = map(int, input().split())
n = int(input())
a = list(map(int, input().split()))

x = x*10 / 36
y = y*10 / 36

for i in range(n-1):
    t = a[i] / x
    yl = t * y
    if yl > a[i+1]:
        print('NO')
        break
else:
    print('YES')
0