結果

問題 No.2682 Visible Divisible
ユーザー Navier_Boltzmann
提出日時 2024-05-16 22:22:47
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 397 bytes
コンパイル時間 243 ms
コンパイル使用メモリ 82,668 KB
実行使用メモリ 129,972 KB
最終ジャッジ日時 2024-12-20 11:12:18
合計ジャッジ時間 48,370 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other TLE * 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)
if g%K==0:
    print('Yes')
else:
    print('No')
0