結果

問題 No.2682 Visible Divisible
ユーザー Navier_Boltzmann
提出日時 2024-05-16 22:24:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 286 ms / 2,000 ms
コード長 417 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 82,032 KB
実行使用メモリ 116,284 KB
最終ジャッジ日時 2024-12-20 11:12:24
合計ジャッジ時間 5,636 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

# import pypyjit
# pypyjit.set_param("max_unroll_recursion=-1")
from collections import *
from functools import *
from itertools import *
from heapq import *
import sys, math
# sys.setrecursionlimit(3*10**5)
input = sys.stdin.readline

N,K = map(int,input().split())
A = list(map(int,input().split()))

g = 1
for a in A:
    g = g*a//math.gcd(g,a)
    g = math.gcd(g,K)
if g==K:
    print('Yes')
else:
    print('No')
0