結果

問題 No.2682 Visible Divisible
ユーザー 👑 tute7627tute7627
提出日時 2023-12-16 02:20:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 207 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 110,712 KB
最終ジャッジ日時 2023-12-16 02:21:14
合計ジャッジ時間 4,452 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 194 ms
110,376 KB
testcase_01 AC 191 ms
110,540 KB
testcase_02 AC 195 ms
110,612 KB
testcase_03 AC 188 ms
110,700 KB
testcase_04 AC 111 ms
105,916 KB
testcase_05 AC 137 ms
105,912 KB
testcase_06 AC 188 ms
110,712 KB
testcase_07 AC 183 ms
109,280 KB
testcase_08 AC 35 ms
53,588 KB
testcase_09 AC 31 ms
53,588 KB
testcase_10 AC 33 ms
53,588 KB
testcase_11 AC 178 ms
110,388 KB
testcase_12 AC 191 ms
110,452 KB
testcase_13 AC 184 ms
109,440 KB
testcase_14 AC 167 ms
110,472 KB
testcase_15 AC 207 ms
109,236 KB
testcase_16 AC 118 ms
105,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import lcm


n, k = map(int, input().split())
a = list(map(int,input().split()))
x = 1
for v in a:
    x = lcm(x, v)
    x %= k

if x % k == 0:
    print("Yes")
else:
    print("No")
0