結果
| 問題 | No.2682 Visible Divisible |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-16 22:22:47 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 397 bytes |
| 記録 | |
| コンパイル時間 | 137 ms |
| コンパイル使用メモリ | 85,760 KB |
| 実行使用メモリ | 137,536 KB |
| 最終ジャッジ日時 | 2026-05-27 11:52:22 |
| 合計ジャッジ時間 | 7,155 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | TLE * 1 -- * 13 |
ソースコード
# 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')