結果
| 問題 | No.512 魔法少女の追いかけっこ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-08 16:39:27 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 2,000 ms |
| コード長 | 225 bytes |
| 記録 | |
| コンパイル時間 | 565 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 51,968 KB |
| 最終ジャッジ日時 | 2026-04-26 05:49:30 |
| 合計ジャッジ時間 | 3,955 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")