結果

問題 No.1299 Random Array Score
ユーザー kazu_eykazu_ey
提出日時 2020-11-27 22:19:05
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 851 ms
コンパイル使用メモリ 10,516 KB
実行使用メモリ 29,872 KB
最終ジャッジ日時 2023-10-01 06:30:44
合計ジャッジ時間 4,132 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,768 KB
testcase_01 AC 16 ms
7,884 KB
testcase_02 AC 16 ms
7,884 KB
testcase_03 AC 82 ms
29,808 KB
testcase_04 AC 79 ms
29,096 KB
testcase_05 AC 66 ms
24,524 KB
testcase_06 AC 60 ms
22,436 KB
testcase_07 AC 62 ms
23,236 KB
testcase_08 AC 79 ms
29,124 KB
testcase_09 AC 18 ms
8,692 KB
testcase_10 AC 41 ms
16,224 KB
testcase_11 AC 23 ms
10,072 KB
testcase_12 AC 58 ms
21,760 KB
testcase_13 AC 79 ms
28,724 KB
testcase_14 AC 59 ms
22,300 KB
testcase_15 AC 61 ms
22,548 KB
testcase_16 AC 59 ms
22,396 KB
testcase_17 AC 24 ms
10,724 KB
testcase_18 AC 42 ms
17,292 KB
testcase_19 AC 48 ms
18,552 KB
testcase_20 AC 33 ms
13,620 KB
testcase_21 AC 16 ms
8,208 KB
testcase_22 AC 25 ms
11,212 KB
testcase_23 AC 58 ms
22,296 KB
testcase_24 AC 65 ms
24,512 KB
testcase_25 AC 58 ms
22,268 KB
testcase_26 AC 16 ms
8,204 KB
testcase_27 AC 27 ms
11,944 KB
testcase_28 AC 23 ms
10,624 KB
testcase_29 AC 28 ms
12,548 KB
testcase_30 AC 57 ms
21,628 KB
testcase_31 AC 31 ms
12,676 KB
testcase_32 AC 77 ms
28,476 KB
testcase_33 AC 84 ms
29,872 KB
testcase_34 AC 51 ms
11,316 KB
testcase_35 AC 83 ms
29,828 KB
testcase_36 AC 51 ms
11,252 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())
a=list(map(int,input().split()))
s=sum(a)
mod=998244353
r=s%mod
t=((n+1)%mod*pow(n,mod-2,mod))%mod
ans=r*pow(2,k,mod)%mod
print(ans)
0