結果

問題 No.1299 Random Array Score
ユーザー ygd.ygd.
提出日時 2020-11-27 21:39:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 131 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 86,832 KB
実行使用メモリ 103,796 KB
最終ジャッジ日時 2023-10-01 05:07:18
合計ジャッジ時間 6,132 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
70,968 KB
testcase_01 AC 76 ms
71,300 KB
testcase_02 AC 79 ms
71,176 KB
testcase_03 AC 128 ms
100,312 KB
testcase_04 AC 131 ms
99,976 KB
testcase_05 AC 111 ms
100,572 KB
testcase_06 AC 107 ms
97,440 KB
testcase_07 AC 107 ms
97,660 KB
testcase_08 AC 128 ms
99,744 KB
testcase_09 AC 78 ms
75,520 KB
testcase_10 AC 94 ms
86,632 KB
testcase_11 AC 80 ms
76,516 KB
testcase_12 AC 103 ms
95,156 KB
testcase_13 AC 127 ms
101,716 KB
testcase_14 AC 104 ms
95,608 KB
testcase_15 AC 110 ms
97,516 KB
testcase_16 AC 112 ms
97,460 KB
testcase_17 AC 84 ms
78,012 KB
testcase_18 AC 95 ms
88,272 KB
testcase_19 AC 100 ms
90,336 KB
testcase_20 AC 90 ms
82,820 KB
testcase_21 AC 80 ms
75,560 KB
testcase_22 AC 84 ms
78,300 KB
testcase_23 AC 107 ms
97,432 KB
testcase_24 AC 112 ms
100,776 KB
testcase_25 AC 107 ms
95,176 KB
testcase_26 AC 82 ms
75,528 KB
testcase_27 AC 85 ms
78,972 KB
testcase_28 AC 83 ms
77,288 KB
testcase_29 AC 88 ms
80,532 KB
testcase_30 AC 106 ms
94,932 KB
testcase_31 AC 90 ms
80,656 KB
testcase_32 AC 130 ms
101,568 KB
testcase_33 AC 138 ms
99,304 KB
testcase_34 AC 112 ms
103,796 KB
testcase_35 AC 133 ms
99,468 KB
testcase_36 AC 111 ms
103,572 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split()); MOD = 998244353
A = list(map(int,input().split()))
S = sum(A)
ans = S*pow(2,K,MOD)%MOD
print(ans)

0