結果

問題 No.1250 汝は倍数なりや?
ユーザー 👑 rin204rin204
提出日時 2020-10-10 11:21:01
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 154 ms / 1,000 ms
コード長 176 bytes
コンパイル時間 118 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 31,136 KB
最終ジャッジ日時 2024-07-20 15:46:19
合計ジャッジ時間 4,581 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 49
権限があれば一括ダウンロードができます

ソースコード

diff #

n, h = map(int, input().split())
alst = list(map(int, input().split()))
prod = 1
for a in alst:
    prod *= a
    prod %= h
if prod == 0:
    print("YES")
else:
    print("NO")
0