結果

問題 No.1299 Random Array Score
ユーザー shotoyooshotoyoo
提出日時 2020-11-27 22:10:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 316 bytes
コンパイル時間 2,307 ms
コンパイル使用メモリ 86,524 KB
実行使用メモリ 103,840 KB
最終ジャッジ日時 2023-10-01 06:12:52
合計ジャッジ時間 6,051 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
71,260 KB
testcase_01 AC 80 ms
71,232 KB
testcase_02 AC 79 ms
71,212 KB
testcase_03 AC 127 ms
100,088 KB
testcase_04 AC 125 ms
100,044 KB
testcase_05 AC 112 ms
100,464 KB
testcase_06 AC 107 ms
97,380 KB
testcase_07 AC 112 ms
97,784 KB
testcase_08 AC 128 ms
99,752 KB
testcase_09 AC 81 ms
75,404 KB
testcase_10 AC 94 ms
86,752 KB
testcase_11 AC 80 ms
76,788 KB
testcase_12 AC 105 ms
95,052 KB
testcase_13 AC 126 ms
100,652 KB
testcase_14 AC 106 ms
95,124 KB
testcase_15 AC 107 ms
97,732 KB
testcase_16 AC 108 ms
97,340 KB
testcase_17 AC 84 ms
77,688 KB
testcase_18 AC 94 ms
88,240 KB
testcase_19 AC 98 ms
90,256 KB
testcase_20 AC 88 ms
82,828 KB
testcase_21 AC 81 ms
75,824 KB
testcase_22 AC 84 ms
78,352 KB
testcase_23 AC 108 ms
97,428 KB
testcase_24 AC 112 ms
100,512 KB
testcase_25 AC 106 ms
95,416 KB
testcase_26 AC 80 ms
75,444 KB
testcase_27 AC 87 ms
79,004 KB
testcase_28 AC 85 ms
77,764 KB
testcase_29 AC 89 ms
80,816 KB
testcase_30 AC 107 ms
94,848 KB
testcase_31 AC 101 ms
80,600 KB
testcase_32 AC 139 ms
101,668 KB
testcase_33 AC 133 ms
99,236 KB
testcase_34 AC 124 ms
103,840 KB
testcase_35 AC 139 ms
99,256 KB
testcase_36 AC 112 ms
103,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")

n,k = list(map(int, input().split()))
a = list(map(int, input().split()))
ans = 0
M = 998244353
def inv(x):
    return pow(x, M-2, M)
ans = sum(a) * pow(2, k, M)
print(ans%M)
0