結果

問題 No.1145 Sums of Powers
ユーザー kozy
提出日時 2020-07-31 22:15:24
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 294 bytes
コンパイル時間 218 ms
コンパイル使用メモリ 82,480 KB
実行使用メモリ 290,736 KB
最終ジャッジ日時 2024-07-06 18:34:08
合計ジャッジ時間 3,862 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 TLE * 1 -- * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M=map(int,input().split())
A=list(map(int,input().split()))
ans=[1]*N
mod=998244353
ans = [x * y for (x, y) in zip(A, ans)]
R=list()
R.append(sum(ans)%mod)
L=list()
for i in range(M-1):
    ans = [x%mod * y%mod for (x, y) in zip(A, ans)]
    R.append(sum(ans)%mod)
print(" ".join(map(str,R)))
0