結果

問題 No.2682 Visible Divisible
ユーザー tkykwtnbtkykwtnb
提出日時 2024-03-23 23:27:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 217 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 37,304 KB
最終ジャッジ日時 2024-03-23 23:27:40
合計ジャッジ時間 3,663 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
35,736 KB
testcase_01 AC 128 ms
34,848 KB
testcase_02 AC 139 ms
36,296 KB
testcase_03 AC 130 ms
36,368 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 134 ms
36,040 KB
testcase_08 AC 28 ms
9,984 KB
testcase_09 AC 28 ms
9,984 KB
testcase_10 AC 28 ms
9,984 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 122 ms
36,280 KB
testcase_14 WA -
testcase_15 AC 131 ms
36,116 KB
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N,K=map(int,input().split())
A=list(map(int,input().split()))
B=[]
for a in A:
    if K%a==0:B.append(a)
if len(B)==0:
    print("No");exit()
lcm=math.lcm(*B)
if lcm<K:
    print("No");exit()
print("Yes")
0