結果
問題 | No.512 魔法少女の追いかけっこ |
ユーザー |
|
提出日時 | 2017-05-05 22:24:43 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 43 ms / 2,000 ms |
コード長 | 217 bytes |
コンパイル時間 | 546 ms |
コンパイル使用メモリ | 82,388 KB |
実行使用メモリ | 53,720 KB |
最終ジャッジ日時 | 2024-06-27 05:47:00 |
合計ジャッジ時間 | 4,091 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 53 |
ソースコード
x, y = map(int, input().split()) n = int(input()) a = list(map(int, input().split())) ok = True for i in range(n - 1): if a[i + 1] * x < a[i] * y: ok = False if ok: print('YES') else: print('NO')