結果
| 問題 | No.2682 Visible Divisible |
| コンテスト | |
| ユーザー |
だれ
|
| 提出日時 | 2023-12-15 21:06:28 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 218 ms / 2,000 ms |
| + 835µs | |
| コード長 | 182 bytes |
| 記録 | |
| コンパイル時間 | 282 ms |
| コンパイル使用メモリ | 21,340 KB |
| 実行使用メモリ | 36,956 KB |
| 最終ジャッジ日時 | 2026-09-05 04:32:49 |
| 合計ジャッジ時間 | 7,675 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
ソースコード
from math import gcd, lcm
n, k = map(int, input().split())
a = list(map(int, input().split()))
l = 1
for i in a:
i = gcd(i, k)
l = lcm(i, l)
print("Yes" if l == k else "No")
だれ