結果

問題 No.1395 Less Sweet Alchemy
ユーザー O2MTO2MT
提出日時 2021-02-14 21:51:19
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 255 bytes
コンパイル時間 260 ms
コンパイル使用メモリ 87,292 KB
実行使用メモリ 71,812 KB
最終ジャッジ日時 2023-09-29 15:11:01
合計ジャッジ時間 2,103 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,420 KB
testcase_01 AC 70 ms
71,672 KB
testcase_02 AC 71 ms
71,424 KB
testcase_03 AC 70 ms
71,672 KB
testcase_04 AC 72 ms
71,536 KB
testcase_05 AC 70 ms
71,144 KB
testcase_06 AC 70 ms
71,752 KB
testcase_07 AC 70 ms
71,416 KB
testcase_08 AC 69 ms
71,704 KB
testcase_09 WA -
testcase_10 AC 70 ms
71,676 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd

def lcm(x, y):
    return (x * y) // gcd(x, y)

N,X = map(int,input().split())
C = list(map(int,input().split()))
lc = C[0]
for i in range(1,N):
    lc = lcm(lc,C[i])
M = lc/X
if M.is_integer():
    print("Yes")
else:
    print("No")
0