結果
| 問題 | No.1250 汝は倍数なりや? |
| コンテスト | |
| ユーザー |
nohakai3
|
| 提出日時 | 2022-07-16 11:14:56 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 166 bytes |
| 記録 | |
| コンパイル時間 | 524 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 50,168 KB |
| 最終ジャッジ日時 | 2026-03-17 00:26:23 |
| 合計ジャッジ時間 | 35,632 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 WA * 5 TLE * 15 |
ソースコード
n,h=map(int,input().split())
A=list(map(int,input().split()))
ans=1
for i in range(n):
ans*=(A[i]%998244353)
if ans%h==0:
print("YES")
else:
print("NO")
nohakai3