結果

問題 No.2682 Visible Divisible
ユーザー 👑 p-adicp-adic
提出日時 2024-03-20 22:31:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 284 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 542 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 110,292 KB
最終ジャッジ日時 2024-03-20 22:31:42
合計ジャッジ時間 5,798 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 279 ms
109,956 KB
testcase_01 AC 275 ms
110,120 KB
testcase_02 AC 279 ms
110,188 KB
testcase_03 AC 277 ms
110,276 KB
testcase_04 AC 284 ms
110,104 KB
testcase_05 AC 277 ms
109,964 KB
testcase_06 AC 269 ms
110,292 KB
testcase_07 AC 270 ms
108,848 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 AC 279 ms
110,092 KB
testcase_12 AC 281 ms
110,160 KB
testcase_13 AC 270 ms
109,940 KB
testcase_14 AC 282 ms
110,172 KB
testcase_15 AC 271 ms
108,944 KB
testcase_16 AC 272 ms
109,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

J=lambda:map(int,input().split())
N,K=J()
A=list(J())
def g(a,b):
	while b:a,b=b,a%b
	return a
for i in range(N):A[i]=g(A[i],K)
l=1
for a in A:l=l*a//g(l,a)
print("YNeos"[l<K::2])
0