結果
| 問題 | No.1250 汝は倍数なりや? | 
| コンテスト | |
| ユーザー |  anagohirame | 
| 提出日時 | 2020-10-09 21:56:09 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 136 ms / 1,000 ms | 
| コード長 | 151 bytes | 
| コンパイル時間 | 193 ms | 
| コンパイル使用メモリ | 82,176 KB | 
| 実行使用メモリ | 107,520 KB | 
| 最終ジャッジ日時 | 2024-07-20 11:02:52 | 
| 合計ジャッジ時間 | 4,763 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 49 | 
ソースコード
from math import gcd
n, h = map(int, input().split())
a = list(map(int, input().split()))
for x in a:
	h //= gcd(x, h)
print("YES" if h == 1 else "NO")
            
            
            
        