結果

問題 No.2682 Visible Divisible
ユーザー 👑 tipstar0125tipstar0125
提出日時 2024-03-20 22:55:32
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 212 bytes
コンパイル時間 233 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 105,608 KB
最終ジャッジ日時 2024-03-20 22:55:40
合計ジャッジ時間 4,285 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 173 ms
105,492 KB
testcase_01 AC 171 ms
105,404 KB
testcase_02 AC 174 ms
105,304 KB
testcase_03 AC 172 ms
105,312 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 169 ms
104,908 KB
testcase_08 AC 38 ms
53,588 KB
testcase_09 AC 38 ms
53,588 KB
testcase_10 AC 37 ms
53,588 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 171 ms
105,608 KB
testcase_14 WA -
testcase_15 AC 167 ms
104,864 KB
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd
N,K=list(map(int,input().split()))
A=list(map(int,input().split()))

g=0
for a in A:g=gcd(g,a)
for i in range(N):A[i]//=g
for a in A:
    if K%a==0:K//=a
if K==1:print("Yes")
else:print("No")
0