結果

問題 No.512 魔法少女の追いかけっこ
コンテスト
ユーザー lloyz
提出日時 2022-11-05 01:34:39
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 265 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 497 ms
コンパイル使用メモリ 84,576 KB
実行使用メモリ 138,352 KB
最終ジャッジ日時 2026-04-02 12:53:41
合計ジャッジ時間 3,551 ms
ジャッジサーバーID
(参考情報)
judge5_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 48 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from bisect import bisect_left

x, y = map(int, input().split())
n = int(input())
A = list(map(int, input().split()))

for i in range(n):
    t = A[i] / x
    d = t * y
    idx = bisect_left(A, d)
    if idx - i > 1:
        print("NO")
        exit()
print("YES")
0