結果
| 問題 | No.2682 Visible Divisible |
| コンテスト | |
| ユーザー |
nikoro256
|
| 提出日時 | 2024-03-22 16:40:57 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 185 ms / 2,000 ms |
| + 898µs | |
| コード長 | 218 bytes |
| 記録 | |
| コンパイル時間 | 230 ms |
| コンパイル使用メモリ | 95,696 KB |
| 実行使用メモリ | 116,224 KB |
| 最終ジャッジ日時 | 2026-09-06 16:28:13 |
| 合計ジャッジ時間 | 6,322 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
ソースコード
import math
N,K=map(int,input().split())
A=list(map(int,input().split()))
gcds=1
for i in range(N):
gcds=(gcds*math.gcd(K,A[i]))//math.gcd(gcds,math.gcd(K,A[i]))
if K==gcds:
print('Yes')
exit(0)
print('No')
nikoro256