結果
| 問題 | No.1250 汝は倍数なりや? | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-11-15 10:41:42 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 95 ms / 1,000 ms | 
| コード長 | 207 bytes | 
| コンパイル時間 | 196 ms | 
| コンパイル使用メモリ | 82,248 KB | 
| 実行使用メモリ | 106,200 KB | 
| 最終ジャッジ日時 | 2024-07-23 01:06:28 | 
| 合計ジャッジ時間 | 4,480 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 49 | 
ソースコード
import sys
input = sys.stdin.readline
N, H = map(int, input().split())
A = list(map(int, input().split()))
now = 1
for Ai in A:
    now *= Ai
    now %= H
if now==0:
    print('YES')
else:
    print('NO')
            
            
            
        