結果
問題 | No.512 魔法少女の追いかけっこ |
ユーザー |
|
提出日時 | 2024-06-09 10:13:21 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 35 ms / 2,000 ms |
コード長 | 230 bytes |
コンパイル時間 | 618 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-12-29 17:17:00 |
合計ジャッジ時間 | 4,134 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 53 |
ソースコード
x, y = map(int, input().split())n = int(input())A = list(map(int, input().split()))flg = Truefor i in range(n-1):if y * A[i] > x * A[i+1]:flg = Falsebreakif flg:print('YES')else:print('NO')