結果
| 問題 | No.1395 Less Sweet Alchemy |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-14 21:51:19 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 255 bytes |
| 記録 | |
| コンパイル時間 | 206 ms |
| コンパイル使用メモリ | 85,184 KB |
| 実行使用メモリ | 53,644 KB |
| 最終ジャッジ日時 | 2026-04-03 08:24:49 |
| 合計ジャッジ時間 | 1,373 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 WA * 4 |
ソースコード
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")