結果

問題 No.1299 Random Array Score
ユーザー zentsu999zentsu999
提出日時 2020-11-27 21:59:04
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 120 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 10,532 KB
実行使用メモリ 29,920 KB
最終ジャッジ日時 2023-10-01 05:42:38
合計ジャッジ時間 3,742 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,792 KB
testcase_01 AC 16 ms
7,792 KB
testcase_02 AC 16 ms
7,712 KB
testcase_03 AC 80 ms
29,860 KB
testcase_04 AC 78 ms
29,136 KB
testcase_05 AC 64 ms
24,412 KB
testcase_06 AC 58 ms
22,528 KB
testcase_07 AC 59 ms
23,316 KB
testcase_08 AC 78 ms
29,204 KB
testcase_09 AC 17 ms
8,656 KB
testcase_10 AC 40 ms
16,292 KB
testcase_11 AC 21 ms
10,008 KB
testcase_12 AC 56 ms
21,784 KB
testcase_13 AC 76 ms
28,816 KB
testcase_14 AC 58 ms
22,388 KB
testcase_15 AC 59 ms
22,468 KB
testcase_16 AC 58 ms
22,404 KB
testcase_17 AC 24 ms
10,636 KB
testcase_18 AC 43 ms
17,024 KB
testcase_19 AC 47 ms
18,720 KB
testcase_20 AC 32 ms
13,604 KB
testcase_21 AC 17 ms
8,368 KB
testcase_22 AC 25 ms
11,180 KB
testcase_23 AC 58 ms
22,320 KB
testcase_24 AC 64 ms
24,408 KB
testcase_25 AC 58 ms
22,188 KB
testcase_26 AC 16 ms
8,332 KB
testcase_27 AC 27 ms
11,720 KB
testcase_28 AC 23 ms
10,500 KB
testcase_29 AC 29 ms
12,600 KB
testcase_30 AC 56 ms
21,536 KB
testcase_31 AC 29 ms
12,736 KB
testcase_32 AC 76 ms
28,424 KB
testcase_33 AC 81 ms
29,788 KB
testcase_34 AC 51 ms
11,368 KB
testcase_35 AC 83 ms
29,920 KB
testcase_36 AC 51 ms
11,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K=map(int,input().split())
*A,=map(int,input().split())
S=sum(A)
M=998244353
k=pow(2,K,M)
ans=(S*k)%M
print(ans)
0