結果

問題 No.1250 汝は倍数なりや?
ユーザー kozykozy
提出日時 2020-10-09 21:22:32
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 166 ms / 1,000 ms
コード長 187 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 28,592 KB
最終ジャッジ日時 2023-09-27 14:04:38
合計ジャッジ時間 4,143 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,148 KB
testcase_01 AC 15 ms
7,908 KB
testcase_02 AC 15 ms
8,148 KB
testcase_03 AC 15 ms
7,876 KB
testcase_04 AC 16 ms
8,176 KB
testcase_05 AC 17 ms
7,880 KB
testcase_06 AC 16 ms
7,892 KB
testcase_07 AC 17 ms
7,932 KB
testcase_08 AC 16 ms
7,960 KB
testcase_09 AC 17 ms
7,892 KB
testcase_10 AC 16 ms
7,880 KB
testcase_11 AC 16 ms
8,360 KB
testcase_12 AC 15 ms
7,880 KB
testcase_13 AC 16 ms
8,084 KB
testcase_14 AC 16 ms
8,188 KB
testcase_15 AC 16 ms
8,240 KB
testcase_16 AC 16 ms
8,156 KB
testcase_17 AC 14 ms
8,356 KB
testcase_18 AC 16 ms
8,300 KB
testcase_19 AC 15 ms
7,844 KB
testcase_20 AC 16 ms
8,236 KB
testcase_21 AC 13 ms
8,144 KB
testcase_22 AC 13 ms
8,300 KB
testcase_23 AC 14 ms
7,892 KB
testcase_24 AC 14 ms
7,932 KB
testcase_25 AC 14 ms
7,896 KB
testcase_26 AC 13 ms
8,176 KB
testcase_27 AC 13 ms
7,936 KB
testcase_28 AC 13 ms
8,164 KB
testcase_29 AC 14 ms
7,892 KB
testcase_30 AC 13 ms
8,212 KB
testcase_31 AC 13 ms
8,356 KB
testcase_32 AC 14 ms
8,228 KB
testcase_33 AC 165 ms
28,592 KB
testcase_34 AC 44 ms
18,236 KB
testcase_35 AC 72 ms
25,852 KB
testcase_36 AC 148 ms
26,896 KB
testcase_37 AC 98 ms
19,104 KB
testcase_38 AC 111 ms
20,316 KB
testcase_39 AC 43 ms
18,400 KB
testcase_40 AC 44 ms
18,692 KB
testcase_41 AC 131 ms
21,756 KB
testcase_42 AC 76 ms
15,736 KB
testcase_43 AC 166 ms
26,332 KB
testcase_44 AC 70 ms
15,648 KB
testcase_45 AC 90 ms
27,024 KB
testcase_46 AC 57 ms
13,552 KB
testcase_47 AC 55 ms
19,632 KB
testcase_48 AC 14 ms
8,300 KB
testcase_49 AC 14 ms
7,932 KB
testcase_50 AC 13 ms
8,344 KB
testcase_51 AC 14 ms
8,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N,H=map(int,input().split())
A=list(map(int,input().split()))
for i in range(N):
    s=A[i]
    H=H//math.gcd(s,H)
    if H==1:
        print("YES")
        exit()
print("NO")
0