結果
問題 |
No.1145 Sums of Powers
|
ユーザー |
![]() |
提出日時 | 2020-07-31 22:09:10 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 294 bytes |
コンパイル時間 | 166 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 29,008 KB |
最終ジャッジ日時 | 2024-07-06 18:23:13 |
合計ジャッジ時間 | 4,048 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 TLE * 1 -- * 2 |
ソースコード
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)))