結果
| 問題 | No.1250 汝は倍数なりや? | 
| コンテスト | |
| ユーザー |  taiga000629 | 
| 提出日時 | 2020-10-09 23:15:54 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 97 ms / 1,000 ms | 
| コード長 | 139 bytes | 
| コンパイル時間 | 227 ms | 
| コンパイル使用メモリ | 82,304 KB | 
| 実行使用メモリ | 107,520 KB | 
| 最終ジャッジ日時 | 2024-07-20 14:09:40 | 
| 合計ジャッジ時間 | 4,265 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 49 | 
ソースコード
n,h=map(int,input().split())
a=list(map(int,input().split()))
ans=1
for i in range(n):
    ans=ans*a[i]%h
print("YES" if ans==0 else "NO")
            
            
            
        