結果
| 問題 |
No.2682 Visible Divisible
|
| コンテスト | |
| ユーザー |
mutualns
|
| 提出日時 | 2024-03-21 00:30:38 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 162 bytes |
| コンパイル時間 | 160 ms |
| コンパイル使用メモリ | 81,916 KB |
| 実行使用メモリ | 124,180 KB |
| 最終ジャッジ日時 | 2024-09-30 09:49:06 |
| 合計ジャッジ時間 | 7,132 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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