結果

問題 No.1299 Random Array Score
ユーザー buey_tbuey_t
提出日時 2023-04-01 12:22:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 202 ms / 2,000 ms
コード長 1,156 bytes
コンパイル時間 181 ms
コンパイル使用メモリ 81,788 KB
実行使用メモリ 121,748 KB
最終ジャッジ日時 2023-10-24 17:58:11
合計ジャッジ時間 9,075 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
84,452 KB
testcase_01 AC 120 ms
84,440 KB
testcase_02 AC 119 ms
84,452 KB
testcase_03 AC 202 ms
121,056 KB
testcase_04 AC 175 ms
120,840 KB
testcase_05 AC 160 ms
113,436 KB
testcase_06 AC 157 ms
110,328 KB
testcase_07 AC 158 ms
110,620 KB
testcase_08 AC 168 ms
120,812 KB
testcase_09 AC 135 ms
88,964 KB
testcase_10 AC 148 ms
99,536 KB
testcase_11 AC 131 ms
89,264 KB
testcase_12 AC 153 ms
107,936 KB
testcase_13 AC 167 ms
120,688 KB
testcase_14 AC 154 ms
108,084 KB
testcase_15 AC 156 ms
110,376 KB
testcase_16 AC 156 ms
110,328 KB
testcase_17 AC 134 ms
90,564 KB
testcase_18 AC 144 ms
101,180 KB
testcase_19 AC 148 ms
103,216 KB
testcase_20 AC 137 ms
95,448 KB
testcase_21 AC 129 ms
88,988 KB
testcase_22 AC 135 ms
91,348 KB
testcase_23 AC 154 ms
110,264 KB
testcase_24 AC 158 ms
113,396 KB
testcase_25 AC 154 ms
108,056 KB
testcase_26 AC 129 ms
88,964 KB
testcase_27 AC 134 ms
92,108 KB
testcase_28 AC 135 ms
90,132 KB
testcase_29 AC 136 ms
93,480 KB
testcase_30 AC 156 ms
107,824 KB
testcase_31 AC 136 ms
93,536 KB
testcase_32 AC 166 ms
120,640 KB
testcase_33 AC 168 ms
121,748 KB
testcase_34 AC 160 ms
116,512 KB
testcase_35 AC 171 ms
121,744 KB
testcase_36 AC 158 ms
116,512 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    from math import sqrt,sin,cos,tan,ceil,radians,floor,gcd,exp,log,log10,log2,factorial,fsum
    from heapq import heapify, heappop, heappush
    from bisect import bisect_left, bisect_right
    from copy import deepcopy
    import copy
    import random
    from collections import deque,Counter,defaultdict
    from itertools import permutations,combinations
    from decimal import Decimal,ROUND_HALF_UP
    #tmp = Decimal(mid).quantize(Decimal('0'), rounding=ROUND_HALF_UP)
    from functools import lru_cache, reduce
    #@lru_cache(maxsize=None)
    from operator import add,sub,mul,xor,and_,or_,itemgetter
    INF = 10**18
    mod1 = 10**9+7
    mod2 = 998244353
    
    #DecimalならPython
    #再帰ならPython!!!!!!!!!!!!!!!!!!!!!!!!!!
    
    
    '''
    
    
    
    '''
    
    N,K = map(int, input().split())
    A = list(map(int, input().split()))
    
    print(pow(2,K,mod2)*sum(A)%mod2)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
if __name__ == '__main__':
    main()
0