結果

問題 No.512 魔法少女の追いかけっこ
ユーザー h_noson
提出日時 2017-06-13 20:57:13
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 167 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-06-27 06:34:21
合計ジャッジ時間 2,928 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 51 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

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

if n == 1 or x * a[n-1] >= y * a[n-2]:
    print("YES")
else:
    print("NO")
0