結果
| 問題 | No.1250 汝は倍数なりや? |
| コンテスト | |
| ユーザー |
8nd5t
|
| 提出日時 | 2020-10-09 21:23:20 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 61 ms / 1,000 ms |
| コード長 | 367 bytes |
| 記録 | |
| コンパイル時間 | 296 ms |
| コンパイル使用メモリ | 85,380 KB |
| 実行使用メモリ | 163,328 KB |
| 最終ジャッジ日時 | 2026-04-02 22:10:37 |
| 合計ジャッジ時間 | 3,183 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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