結果

問題 No.1250 汝は倍数なりや?
ユーザー uni_pythonuni_python
提出日時 2020-10-09 21:23:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 164 ms / 1,000 ms
コード長 376 bytes
コンパイル時間 991 ms
コンパイル使用メモリ 86,972 KB
実行使用メモリ 99,976 KB
最終ジャッジ日時 2023-09-27 14:07:44
合計ジャッジ時間 7,756 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,348 KB
testcase_01 AC 66 ms
71,204 KB
testcase_02 AC 64 ms
71,356 KB
testcase_03 AC 65 ms
71,132 KB
testcase_04 AC 65 ms
71,188 KB
testcase_05 AC 66 ms
71,276 KB
testcase_06 AC 65 ms
70,992 KB
testcase_07 AC 68 ms
71,256 KB
testcase_08 AC 64 ms
71,196 KB
testcase_09 AC 64 ms
71,332 KB
testcase_10 AC 63 ms
71,260 KB
testcase_11 AC 64 ms
71,360 KB
testcase_12 AC 65 ms
71,528 KB
testcase_13 AC 63 ms
71,108 KB
testcase_14 AC 65 ms
71,276 KB
testcase_15 AC 64 ms
71,068 KB
testcase_16 AC 65 ms
71,344 KB
testcase_17 AC 65 ms
71,120 KB
testcase_18 AC 65 ms
70,992 KB
testcase_19 AC 62 ms
71,200 KB
testcase_20 AC 62 ms
71,460 KB
testcase_21 AC 62 ms
71,488 KB
testcase_22 AC 63 ms
71,440 KB
testcase_23 AC 63 ms
71,264 KB
testcase_24 AC 64 ms
71,064 KB
testcase_25 AC 62 ms
71,436 KB
testcase_26 AC 65 ms
71,272 KB
testcase_27 AC 64 ms
71,280 KB
testcase_28 AC 63 ms
71,192 KB
testcase_29 AC 63 ms
71,472 KB
testcase_30 AC 65 ms
71,192 KB
testcase_31 AC 63 ms
70,988 KB
testcase_32 AC 65 ms
71,132 KB
testcase_33 AC 164 ms
99,252 KB
testcase_34 AC 104 ms
89,976 KB
testcase_35 AC 132 ms
99,976 KB
testcase_36 AC 146 ms
97,820 KB
testcase_37 AC 117 ms
90,320 KB
testcase_38 AC 117 ms
92,052 KB
testcase_39 AC 108 ms
90,288 KB
testcase_40 AC 107 ms
90,120 KB
testcase_41 AC 126 ms
94,724 KB
testcase_42 AC 100 ms
85,076 KB
testcase_43 AC 152 ms
97,620 KB
testcase_44 AC 98 ms
85,300 KB
testcase_45 AC 144 ms
97,852 KB
testcase_46 AC 90 ms
81,796 KB
testcase_47 AC 108 ms
92,028 KB
testcase_48 AC 62 ms
71,148 KB
testcase_49 AC 65 ms
71,112 KB
testcase_50 AC 67 ms
71,184 KB
testcase_51 AC 63 ms
71,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    N,H=MI()
    A=LI()
    from math import gcd
    for i in range(N):
        g=gcd(A[i],H)
        H=H//g
        
    if H==1:
        print("YES")
    else:
        print("NO")


main()
0