結果

問題 No.1250 汝は倍数なりや?
ユーザー lloyzlloyz
提出日時 2022-01-30 18:08:43
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 216 bytes
コンパイル時間 437 ms
コンパイル使用メモリ 87,128 KB
実行使用メモリ 104,124 KB
最終ジャッジ日時 2023-09-02 01:44:06
合計ジャッジ時間 8,176 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
76,152 KB
testcase_01 AC 71 ms
71,220 KB
testcase_02 AC 71 ms
71,736 KB
testcase_03 AC 71 ms
71,208 KB
testcase_04 AC 71 ms
71,484 KB
testcase_05 AC 71 ms
71,768 KB
testcase_06 AC 71 ms
71,560 KB
testcase_07 AC 71 ms
71,324 KB
testcase_08 AC 72 ms
71,388 KB
testcase_09 AC 72 ms
71,504 KB
testcase_10 AC 70 ms
71,208 KB
testcase_11 AC 70 ms
71,544 KB
testcase_12 AC 71 ms
71,496 KB
testcase_13 AC 70 ms
71,768 KB
testcase_14 WA -
testcase_15 AC 71 ms
71,448 KB
testcase_16 AC 69 ms
71,492 KB
testcase_17 AC 69 ms
71,484 KB
testcase_18 AC 70 ms
71,616 KB
testcase_19 AC 72 ms
71,772 KB
testcase_20 AC 72 ms
71,480 KB
testcase_21 AC 70 ms
71,548 KB
testcase_22 AC 69 ms
71,544 KB
testcase_23 AC 75 ms
71,480 KB
testcase_24 AC 74 ms
71,564 KB
testcase_25 AC 74 ms
71,208 KB
testcase_26 AC 72 ms
71,204 KB
testcase_27 AC 76 ms
71,460 KB
testcase_28 AC 72 ms
71,376 KB
testcase_29 AC 71 ms
71,472 KB
testcase_30 AC 77 ms
71,580 KB
testcase_31 AC 71 ms
71,564 KB
testcase_32 AC 74 ms
71,376 KB
testcase_33 TLE -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
testcase_46 -- -
testcase_47 -- -
testcase_48 -- -
testcase_49 -- -
testcase_50 -- -
testcase_51 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd

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

res = 1
for i in range(n):
    res = (res * A[i]) // gcd(res, A[i])
if res % h == 0:
    print("YES")
else:
    print("NO")
0