結果

問題 No.2682 Visible Divisible
ユーザー tkykwtnb
提出日時 2024-03-23 23:27:35
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 217 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 35,088 KB
最終ジャッジ日時 2024-09-30 13:38:09
合計ジャッジ時間 3,638 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7 WA * 7
権限があれば一括ダウンロードができます

ソースコード

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