結果
| 問題 |
No.1250 汝は倍数なりや?
|
| コンテスト | |
| ユーザー |
8nd5t
|
| 提出日時 | 2020-10-09 21:23:20 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 108 ms / 1,000 ms |
| コード長 | 367 bytes |
| コンパイル時間 | 385 ms |
| コンパイル使用メモリ | 82,096 KB |
| 実行使用メモリ | 99,712 KB |
| 最終ジャッジ日時 | 2024-07-20 08:10:42 |
| 合計ジャッジ時間 | 5,009 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 49 |
ソースコード
import sys,math,itertools
from collections import Counter,deque,defaultdict
from bisect import bisect_left,bisect_right
mod = 10**9+7
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
n,h = inpl()
a = inpl()
now = 1
for x in a:
now *= x
now %= h
print('YES' if now == 0 else 'NO')
8nd5t