結果
| 問題 | No.2682 Visible Divisible |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-16 22:24:03 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 204 ms / 2,000 ms |
| コード長 | 417 bytes |
| 記録 | |
| コンパイル時間 | 289 ms |
| コンパイル使用メモリ | 84,736 KB |
| 実行使用メモリ | 114,412 KB |
| 最終ジャッジ日時 | 2026-05-27 11:52:28 |
| 合計ジャッジ時間 | 4,707 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
ソースコード
# 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')