結果

問題 No.1299 Random Array Score
ユーザー ansainansain
提出日時 2020-11-29 22:49:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 241 bytes
コンパイル時間 66 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 30,044 KB
最終ジャッジ日時 2023-10-11 02:40:01
合計ジャッジ時間 3,445 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,860 KB
testcase_01 AC 16 ms
7,864 KB
testcase_02 AC 15 ms
7,876 KB
testcase_03 AC 77 ms
29,812 KB
testcase_04 AC 76 ms
29,140 KB
testcase_05 AC 62 ms
24,640 KB
testcase_06 AC 56 ms
22,488 KB
testcase_07 AC 59 ms
23,256 KB
testcase_08 AC 75 ms
29,056 KB
testcase_09 AC 17 ms
8,832 KB
testcase_10 AC 38 ms
16,412 KB
testcase_11 AC 21 ms
10,064 KB
testcase_12 AC 55 ms
21,760 KB
testcase_13 AC 74 ms
28,788 KB
testcase_14 AC 56 ms
22,300 KB
testcase_15 AC 57 ms
22,652 KB
testcase_16 AC 57 ms
22,452 KB
testcase_17 AC 24 ms
10,856 KB
testcase_18 AC 42 ms
17,136 KB
testcase_19 AC 48 ms
18,692 KB
testcase_20 AC 32 ms
13,736 KB
testcase_21 AC 17 ms
8,252 KB
testcase_22 AC 25 ms
11,368 KB
testcase_23 AC 56 ms
22,476 KB
testcase_24 AC 62 ms
24,516 KB
testcase_25 AC 56 ms
22,348 KB
testcase_26 AC 16 ms
8,560 KB
testcase_27 AC 26 ms
11,992 KB
testcase_28 AC 23 ms
10,560 KB
testcase_29 AC 27 ms
12,508 KB
testcase_30 AC 54 ms
21,552 KB
testcase_31 AC 29 ms
12,876 KB
testcase_32 AC 74 ms
28,436 KB
testcase_33 AC 80 ms
29,900 KB
testcase_34 AC 50 ms
11,272 KB
testcase_35 AC 79 ms
30,044 KB
testcase_36 AC 49 ms
11,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
def input(): return sys.stdin.readline().rstrip()


def main():
    n,k=map(int, input().split())
    A=list(map(int, input().split()))
    print((((sum(A)*pow(2,k,998244353)))) % 998244353)


if __name__ == '__main__':
    main()
0