結果
| 問題 |
No.2682 Visible Divisible
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-07-15 21:41:51 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 240 bytes |
| コンパイル時間 | 323 ms |
| コンパイル使用メモリ | 82,096 KB |
| 実行使用メモリ | 126,548 KB |
| 最終ジャッジ日時 | 2025-07-15 21:41:59 |
| 合計ジャッジ時間 | 8,590 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | TLE * 1 -- * 13 |
ソースコード
def gcd(a,b):
if b==0:return a
return gcd(b,a%b)
N,K = map(int,input().split())
A = list(map(int,input().split()))
a = A[0]
for i in range(1,N):
d = gcd(a,A[i])
a = a//d*A[i]
if a%K==0:
print("Yes")
else:
print("No")