結果
| 問題 |
No.2682 Visible Divisible
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-20 21:51:16 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 206 bytes |
| コンパイル時間 | 212 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 120,856 KB |
| 最終ジャッジ日時 | 2024-09-30 07:39:39 |
| 合計ジャッジ時間 | 6,995 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | TLE * 1 -- * 13 |
ソースコード
n,k = map(int, input().split())
alist = list(map(int, input().split()))
from math import gcd
l = 1
for a in alist:
g = gcd(a, l)
l = a*l // g
if l % k == 0:
print("Yes")
else:
print("No")