結果
問題 | No.1145 Sums of Powers |
ユーザー | kozy |
提出日時 | 2020-07-31 22:15:24 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 294 bytes |
コンパイル時間 | 296 ms |
コンパイル使用メモリ | 87,192 KB |
実行使用メモリ | 286,080 KB |
最終ジャッジ日時 | 2023-09-20 23:48:07 |
合計ジャッジ時間 | 4,206 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 71 ms
71,264 KB |
testcase_01 | AC | 72 ms
71,384 KB |
testcase_02 | AC | 103 ms
76,188 KB |
testcase_03 | TLE | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
ソースコード
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)))