結果
問題 | No.2682 Visible Divisible |
ユーザー | mymelochan |
提出日時 | 2024-03-20 22:02:43 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 222 ms / 2,000 ms |
コード長 | 634 bytes |
コンパイル時間 | 324 ms |
コンパイル使用メモリ | 81,700 KB |
実行使用メモリ | 106,976 KB |
最終ジャッジ日時 | 2024-03-20 22:02:48 |
合計ジャッジ時間 | 4,687 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 191 ms
106,976 KB |
testcase_01 | AC | 200 ms
106,892 KB |
testcase_02 | AC | 202 ms
106,832 KB |
testcase_03 | AC | 200 ms
106,796 KB |
testcase_04 | AC | 206 ms
106,552 KB |
testcase_05 | AC | 201 ms
106,544 KB |
testcase_06 | AC | 222 ms
106,800 KB |
testcase_07 | AC | 189 ms
106,704 KB |
testcase_08 | AC | 43 ms
55,724 KB |
testcase_09 | AC | 43 ms
55,724 KB |
testcase_10 | AC | 43 ms
55,724 KB |
testcase_11 | AC | 198 ms
106,544 KB |
testcase_12 | AC | 203 ms
106,928 KB |
testcase_13 | AC | 195 ms
106,644 KB |
testcase_14 | AC | 208 ms
106,944 KB |
testcase_15 | AC | 200 ms
106,684 KB |
testcase_16 | AC | 202 ms
106,696 KB |
ソースコード
############################################################# import sys sys.setrecursionlimit(10**7) from heapq import heappop,heappush from collections import deque,defaultdict,Counter from bisect import bisect_left, bisect_right from itertools import product,combinations,permutations from math import gcd ipt = sys.stdin.readline def iin(): return int(ipt()) def lmin(): return list(map(int,ipt().split())) MOD = 998244353 ############################################################# N,K = lmin() A = lmin() l = 1 for a in A: g = gcd(a,K) l = g*l//gcd(g,l) if l == K: print("Yes") else: print("No")