結果

問題 No.1299 Random Array Score
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-11-15 23:12:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 104 ms / 2,000 ms
コード長 255 bytes
コンパイル時間 437 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 102,068 KB
最終ジャッジ日時 2023-11-15 23:12:21
合計ジャッジ時間 5,765 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
55,596 KB
testcase_01 AC 42 ms
55,596 KB
testcase_02 AC 43 ms
55,596 KB
testcase_03 AC 102 ms
101,208 KB
testcase_04 AC 104 ms
101,340 KB
testcase_05 AC 92 ms
95,884 KB
testcase_06 AC 79 ms
94,584 KB
testcase_07 AC 80 ms
95,452 KB
testcase_08 AC 102 ms
101,360 KB
testcase_09 AC 51 ms
63,788 KB
testcase_10 AC 62 ms
80,984 KB
testcase_11 AC 50 ms
66,768 KB
testcase_12 AC 74 ms
91,740 KB
testcase_13 AC 101 ms
99,820 KB
testcase_14 AC 75 ms
92,244 KB
testcase_15 AC 76 ms
94,748 KB
testcase_16 AC 79 ms
94,584 KB
testcase_17 AC 55 ms
68,076 KB
testcase_18 AC 64 ms
82,688 KB
testcase_19 AC 67 ms
86,728 KB
testcase_20 AC 57 ms
74,884 KB
testcase_21 AC 47 ms
63,808 KB
testcase_22 AC 52 ms
68,664 KB
testcase_23 AC 75 ms
94,428 KB
testcase_24 AC 87 ms
95,848 KB
testcase_25 AC 73 ms
92,220 KB
testcase_26 AC 46 ms
61,676 KB
testcase_27 AC 53 ms
69,336 KB
testcase_28 AC 50 ms
67,600 KB
testcase_29 AC 55 ms
72,940 KB
testcase_30 AC 72 ms
91,528 KB
testcase_31 AC 54 ms
73,036 KB
testcase_32 AC 104 ms
97,920 KB
testcase_33 AC 100 ms
101,944 KB
testcase_34 AC 79 ms
99,964 KB
testcase_35 AC 101 ms
102,068 KB
testcase_36 AC 78 ms
99,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0