結果
| 問題 |
No.512 魔法少女の追いかけっこ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-08 16:39:27 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 2,000 ms |
| コード長 | 225 bytes |
| コンパイル時間 | 1,085 ms |
| コンパイル使用メモリ | 82,448 KB |
| 実行使用メモリ | 53,788 KB |
| 最終ジャッジ日時 | 2024-10-10 03:42:49 |
| 合計ジャッジ時間 | 3,875 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 53 |
ソースコード
x,y=map(int,input().split())
n=int(input())
A=list(map(int,input().split()))
memo=0
for i in range(n-1):
Y=A[i+1]/y
X=A[i]/x
if X>Y:
memo+=1
break
if memo==0:
print("YES")
else:
print("NO")