結果
問題 | No.512 魔法少女の追いかけっこ |
ユーザー |
|
提出日時 | 2017-05-22 13:41:36 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 453 bytes |
コンパイル時間 | 174 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-27 06:28:53 |
合計ジャッジ時間 | 3,007 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 48 WA * 5 |
ソースコード
from collections import defaultdict from bisect import bisect def main(): X, Y = map(int, input().split()) N = int(input()) A_list = list(map(int, input().split())) for i in range(N - 1): a = A_list[i] t = a / X s = Y * t p = bisect(A_list, s) if p > i + 1 and A_list[i + 1] != s: print("NO") break else: print("YES") if __name__ == '__main__': main()