結果

問題 No.1250 汝は倍数なりや?
ユーザー matriematrie
提出日時 2020-12-10 23:53:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 174 ms / 1,000 ms
コード長 145 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 11,888 KB
実行使用メモリ 30,532 KB
最終ジャッジ日時 2023-10-20 01:02:52
合計ジャッジ時間 4,454 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,192 KB
testcase_01 AC 28 ms
10,192 KB
testcase_02 AC 29 ms
10,192 KB
testcase_03 AC 31 ms
10,192 KB
testcase_04 AC 28 ms
10,192 KB
testcase_05 AC 29 ms
10,192 KB
testcase_06 AC 28 ms
10,192 KB
testcase_07 AC 28 ms
10,192 KB
testcase_08 AC 28 ms
10,192 KB
testcase_09 AC 28 ms
10,192 KB
testcase_10 AC 28 ms
10,192 KB
testcase_11 AC 28 ms
10,192 KB
testcase_12 AC 29 ms
10,192 KB
testcase_13 AC 29 ms
10,196 KB
testcase_14 AC 28 ms
10,196 KB
testcase_15 AC 28 ms
10,196 KB
testcase_16 AC 28 ms
10,196 KB
testcase_17 AC 27 ms
10,192 KB
testcase_18 AC 30 ms
10,196 KB
testcase_19 AC 28 ms
10,192 KB
testcase_20 AC 30 ms
10,196 KB
testcase_21 AC 28 ms
10,192 KB
testcase_22 AC 29 ms
10,196 KB
testcase_23 AC 29 ms
10,280 KB
testcase_24 AC 28 ms
10,280 KB
testcase_25 AC 28 ms
10,300 KB
testcase_26 AC 28 ms
10,224 KB
testcase_27 AC 28 ms
10,288 KB
testcase_28 AC 28 ms
10,240 KB
testcase_29 AC 28 ms
10,224 KB
testcase_30 AC 28 ms
10,296 KB
testcase_31 AC 28 ms
10,228 KB
testcase_32 AC 28 ms
10,300 KB
testcase_33 AC 174 ms
30,532 KB
testcase_34 AC 59 ms
20,360 KB
testcase_35 AC 85 ms
27,944 KB
testcase_36 AC 152 ms
28,812 KB
testcase_37 AC 114 ms
21,232 KB
testcase_38 AC 120 ms
22,144 KB
testcase_39 AC 59 ms
20,236 KB
testcase_40 AC 63 ms
20,712 KB
testcase_41 AC 137 ms
23,812 KB
testcase_42 AC 87 ms
17,620 KB
testcase_43 AC 161 ms
28,780 KB
testcase_44 AC 89 ms
17,676 KB
testcase_45 AC 108 ms
28,888 KB
testcase_46 AC 70 ms
15,552 KB
testcase_47 AC 73 ms
21,652 KB
testcase_48 AC 28 ms
10,192 KB
testcase_49 AC 30 ms
10,192 KB
testcase_50 AC 27 ms
10,192 KB
testcase_51 AC 28 ms
10,192 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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