結果
| 問題 |
No.512 魔法少女の追いかけっこ
|
| コンテスト | |
| ユーザー |
qwewe
|
| 提出日時 | 2025-04-24 12:27:33 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 269 bytes |
| コンパイル時間 | 731 ms |
| コンパイル使用メモリ | 82,212 KB |
| 実行使用メモリ | 53,780 KB |
| 最終ジャッジ日時 | 2025-04-24 12:29:14 |
| 合計ジャッジ時間 | 3,872 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 53 |
ソースコード
X, Y = map(int, input().split())
N = int(input())
A = list(map(int, input().split()))
if N == 1:
print("YES")
else:
ok = True
for i in range(N - 1):
if A[i+1] * X < A[i] * Y:
ok = False
break
print("YES" if ok else "NO")
qwewe