結果
| 問題 | No.2682 Visible Divisible |
| コンテスト | |
| ユーザー |
mutualns
|
| 提出日時 | 2024-03-21 00:30:38 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 162 bytes |
| 記録 | |
| コンパイル時間 | 182 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 123,052 KB |
| 最終ジャッジ日時 | 2026-04-16 13:54:19 |
| 合計ジャッジ時間 | 7,317 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | TLE * 1 -- * 13 |
ソースコード
import math
n,k=map(int,input().split())
a=list(map(int,input().split()))
now=1
for i in a:
now=math.lcm(now,i)
if now%k:
print('No')
else:
print('Yes')
mutualns