結果
| 問題 | No.1250 汝は倍数なりや? | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-10-09 22:34:50 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 214 ms / 1,000 ms | 
| コード長 | 209 bytes | 
| コンパイル時間 | 467 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 31,288 KB | 
| 最終ジャッジ日時 | 2024-07-20 12:58:46 | 
| 合計ジャッジ時間 | 4,715 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 49 | 
ソースコード
from math import gcd
n, h = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
if 0 in a:
    exit(print("YES"))
for i in a:
    h //= gcd(h, i)
print("YES" if h == 1 else "NO")
            
            
            
        