結果

問題 No.512 魔法少女の追いかけっこ
ユーザー _KingdomOfMoray
提出日時 2019-12-24 14:21:23
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 279 bytes
コンパイル時間 265 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-21 23:45:23
合計ジャッジ時間 3,046 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 53
権限があれば一括ダウンロードができます

ソースコード

diff #

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

res = 0
for i in range(n-1):
    if a_list[i+1] * x < a_list[i] * y:
        res = 1
        break
        
if res == 0:
    print('YES')
else:
    print('NO')
0