結果

問題 No.1299 Random Array Score
ユーザー jensenjensen
提出日時 2021-01-04 16:19:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 339 ms / 2,000 ms
コード長 229 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 32,804 KB
最終ジャッジ日時 2024-04-23 02:33:02
合計ジャッジ時間 8,043 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,624 KB
testcase_01 AC 31 ms
10,624 KB
testcase_02 AC 205 ms
11,796 KB
testcase_03 AC 294 ms
32,584 KB
testcase_04 AC 328 ms
31,916 KB
testcase_05 AC 145 ms
27,236 KB
testcase_06 AC 307 ms
25,436 KB
testcase_07 AC 339 ms
26,012 KB
testcase_08 AC 130 ms
31,716 KB
testcase_09 AC 220 ms
12,456 KB
testcase_10 AC 302 ms
19,120 KB
testcase_11 AC 82 ms
13,172 KB
testcase_12 AC 127 ms
24,500 KB
testcase_13 AC 100 ms
31,356 KB
testcase_14 AC 131 ms
24,908 KB
testcase_15 AC 132 ms
25,288 KB
testcase_16 AC 123 ms
25,312 KB
testcase_17 AC 233 ms
14,744 KB
testcase_18 AC 150 ms
19,808 KB
testcase_19 AC 145 ms
21,428 KB
testcase_20 AC 173 ms
16,328 KB
testcase_21 AC 185 ms
12,028 KB
testcase_22 AC 94 ms
14,352 KB
testcase_23 AC 296 ms
25,064 KB
testcase_24 AC 112 ms
27,048 KB
testcase_25 AC 323 ms
24,872 KB
testcase_26 AC 56 ms
11,264 KB
testcase_27 AC 67 ms
14,428 KB
testcase_28 AC 126 ms
14,064 KB
testcase_29 AC 153 ms
15,192 KB
testcase_30 AC 200 ms
24,376 KB
testcase_31 AC 141 ms
15,564 KB
testcase_32 AC 242 ms
31,388 KB
testcase_33 AC 279 ms
32,804 KB
testcase_34 AC 245 ms
14,720 KB
testcase_35 AC 106 ms
32,676 KB
testcase_36 AC 72 ms
14,724 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

[n,k]=list(map(int,input().split()))
a=list(map(int,input().split()))
s=sum(a)

def mypow(a,b):
    p=b//10000
    q=b%10000
    return ((2**10000%998244353)**p%998244353)*(2**q)%998244353

print(s*mypow(2,k%998244352)%998244353)
0