結果
| 問題 |
No.2682 Visible Divisible
|
| コンテスト | |
| ユーザー |
tute7627
|
| 提出日時 | 2023-12-16 02:20:11 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 181 bytes |
| コンパイル時間 | 234 ms |
| コンパイル使用メモリ | 82,540 KB |
| 実行使用メモリ | 124,156 KB |
| 最終ジャッジ日時 | 2024-09-27 07:15:42 |
| 合計ジャッジ時間 | 7,942 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | TLE * 1 -- * 13 |
ソースコード
from math import lcm
n, k = map(int, input().split())
a = list(map(int,input().split()))
x = 1
for v in a:
x = lcm(x, v)
if x % k == 0:
print("Yes")
else:
print("No")
tute7627