結果
| 問題 |
No.512 魔法少女の追いかけっこ
|
| コンテスト | |
| ユーザー |
qwewe
|
| 提出日時 | 2025-04-24 12:27:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 2,000 ms |
| コード長 | 269 bytes |
| コンパイル時間 | 137 ms |
| コンパイル使用メモリ | 82,628 KB |
| 実行使用メモリ | 53,472 KB |
| 最終ジャッジ日時 | 2025-04-24 12:28:37 |
| 合計ジャッジ時間 | 3,290 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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