結果
| 問題 | No.1299 Random Array Score |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-11-27 22:28:51 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 63 ms / 2,000 ms |
| コード長 | 165 bytes |
| 記録 | |
| コンパイル時間 | 155 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 108,800 KB |
| 最終ジャッジ日時 | 2026-04-03 18:00:12 |
| 合計ジャッジ時間 | 3,273 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 34 |
ソースコード
N,K = map(int,input().split()) A = list(map(int,input().split())) mod = 998244353 S = sum(A) S %= mod res = pow(2,K,mod) res %= mod res *= S res %= mod print(res)