結果
| 問題 | No.1299 Random Array Score | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2023-11-15 23:12:15 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 110 ms / 2,000 ms | 
| コード長 | 255 bytes | 
| コンパイル時間 | 224 ms | 
| コンパイル使用メモリ | 82,344 KB | 
| 実行使用メモリ | 102,148 KB | 
| 最終ジャッジ日時 | 2024-09-26 04:54:30 | 
| 合計ジャッジ時間 | 5,484 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 34 | 
ソースコード
from collections import * from itertools import * from functools import * from heapq import * import sys,math N,K = map(int,input().split()) A = list(map(int,input().split())) mod = 998244353 S = sum(A) ans = S*(pow(2,K,mod) - 1)%mod print((ans+S)%mod)
