結果
| 問題 |
No.512 魔法少女の追いかけっこ
|
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2021-01-28 11:13:32 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 2,000 ms |
| コード長 | 205 bytes |
| コンパイル時間 | 179 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-06-25 19:31:03 |
| 合計ジャッジ時間 | 3,698 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 53 |
ソースコード
X,Y = map(int,input().split())
N = int(input())
A = [0] + list(map(int,input().split()))
ANS = True
for i in range(N):
ANS = ANS and (A[i]*Y <= A[i+1]*X)
if ANS:
print('YES')
else:
print('NO')
H20