結果
| 問題 | No.1250 汝は倍数なりや? | 
| コンテスト | |
| ユーザー |  uni_python | 
| 提出日時 | 2020-10-09 21:23:11 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 133 ms / 1,000 ms | 
| コード長 | 376 bytes | 
| コンパイル時間 | 151 ms | 
| コンパイル使用メモリ | 82,048 KB | 
| 実行使用メモリ | 105,696 KB | 
| 最終ジャッジ日時 | 2024-07-20 08:10:12 | 
| 合計ジャッジ時間 | 4,392 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 49 | 
ソースコード
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()
            
            
            
        