結果

問題 No.1250 汝は倍数なりや?
ユーザー anagohirameanagohirame
提出日時 2020-10-09 21:56:09
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 177 ms / 1,000 ms
コード長 151 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 86,892 KB
実行使用メモリ 111,220 KB
最終ジャッジ日時 2023-09-27 16:45:29
合計ジャッジ時間 6,664 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
71,352 KB
testcase_01 AC 65 ms
71,260 KB
testcase_02 AC 63 ms
71,236 KB
testcase_03 AC 65 ms
71,328 KB
testcase_04 AC 64 ms
71,220 KB
testcase_05 AC 66 ms
71,328 KB
testcase_06 AC 64 ms
71,204 KB
testcase_07 AC 65 ms
71,228 KB
testcase_08 AC 63 ms
71,132 KB
testcase_09 AC 68 ms
71,356 KB
testcase_10 AC 63 ms
71,128 KB
testcase_11 AC 64 ms
70,996 KB
testcase_12 AC 64 ms
71,352 KB
testcase_13 AC 64 ms
70,996 KB
testcase_14 AC 64 ms
70,992 KB
testcase_15 AC 62 ms
70,996 KB
testcase_16 AC 64 ms
71,260 KB
testcase_17 AC 63 ms
71,152 KB
testcase_18 AC 64 ms
71,396 KB
testcase_19 AC 63 ms
71,128 KB
testcase_20 AC 62 ms
71,356 KB
testcase_21 AC 61 ms
71,260 KB
testcase_22 AC 63 ms
71,420 KB
testcase_23 AC 65 ms
71,348 KB
testcase_24 AC 63 ms
71,200 KB
testcase_25 AC 64 ms
71,220 KB
testcase_26 AC 65 ms
71,232 KB
testcase_27 AC 64 ms
71,528 KB
testcase_28 AC 66 ms
71,248 KB
testcase_29 AC 63 ms
71,280 KB
testcase_30 AC 68 ms
71,300 KB
testcase_31 AC 64 ms
71,228 KB
testcase_32 AC 65 ms
71,528 KB
testcase_33 AC 177 ms
99,896 KB
testcase_34 AC 104 ms
91,296 KB
testcase_35 AC 133 ms
101,680 KB
testcase_36 AC 145 ms
99,408 KB
testcase_37 AC 115 ms
91,512 KB
testcase_38 AC 117 ms
93,520 KB
testcase_39 AC 104 ms
91,504 KB
testcase_40 AC 105 ms
91,460 KB
testcase_41 AC 126 ms
96,312 KB
testcase_42 AC 101 ms
86,052 KB
testcase_43 AC 147 ms
111,220 KB
testcase_44 AC 98 ms
86,304 KB
testcase_45 AC 142 ms
99,720 KB
testcase_46 AC 90 ms
82,692 KB
testcase_47 AC 119 ms
93,572 KB
testcase_48 AC 64 ms
71,152 KB
testcase_49 AC 64 ms
71,328 KB
testcase_50 AC 65 ms
71,464 KB
testcase_51 AC 62 ms
71,356 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd
n, h = map(int, input().split())
a = list(map(int, input().split()))
for x in a:
	h //= gcd(x, h)
print("YES" if h == 1 else "NO")
0