結果

問題 No.2550 MORE! JUMP! MORE!
ユーザー hato336hato336
提出日時 2023-11-25 13:38:56
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 649 bytes
コンパイル時間 2,233 ms
コンパイル使用メモリ 81,444 KB
実行使用メモリ 121,272 KB
最終ジャッジ日時 2023-11-25 13:39:12
合計ジャッジ時間 11,383 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
85,048 KB
testcase_01 AC 132 ms
85,048 KB
testcase_02 AC 132 ms
85,048 KB
testcase_03 WA -
testcase_04 AC 137 ms
85,048 KB
testcase_05 AC 134 ms
85,048 KB
testcase_06 AC 146 ms
84,920 KB
testcase_07 AC 132 ms
85,048 KB
testcase_08 AC 132 ms
85,048 KB
testcase_09 AC 133 ms
85,048 KB
testcase_10 AC 132 ms
85,048 KB
testcase_11 AC 131 ms
85,048 KB
testcase_12 AC 131 ms
84,920 KB
testcase_13 AC 134 ms
85,048 KB
testcase_14 AC 140 ms
85,048 KB
testcase_15 AC 134 ms
85,048 KB
testcase_16 AC 137 ms
85,048 KB
testcase_17 AC 136 ms
85,048 KB
testcase_18 AC 134 ms
85,048 KB
testcase_19 AC 135 ms
85,048 KB
testcase_20 AC 300 ms
108,216 KB
testcase_21 AC 231 ms
98,360 KB
testcase_22 AC 175 ms
90,424 KB
testcase_23 AC 278 ms
105,528 KB
testcase_24 AC 372 ms
121,016 KB
testcase_25 AC 314 ms
107,832 KB
testcase_26 AC 247 ms
101,560 KB
testcase_27 AC 339 ms
114,104 KB
testcase_28 AC 306 ms
110,776 KB
testcase_29 AC 260 ms
103,352 KB
testcase_30 AC 386 ms
121,272 KB
testcase_31 AC 378 ms
121,272 KB
testcase_32 AC 396 ms
121,144 KB
testcase_33 AC 387 ms
121,272 KB
testcase_34 AC 385 ms
121,144 KB
testcase_35 AC 383 ms
121,144 KB
testcase_36 AC 390 ms
121,144 KB
testcase_37 AC 379 ms
121,272 KB
testcase_38 AC 382 ms
121,144 KB
testcase_39 AC 383 ms
121,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)
n = int(input())
#
#alist = []
#s = input()

#for i in range(n):
#    alist.append(list(map(int,input().split())))

alist = list(map(int,input().split()))
mod = 998244353
ans = 0
for i in range(1,n+1):
    if i == 1:
        ans += alist[i-1] * pow(2,n-i-1,mod)
        ans %= mod
        continue
    if i == n:
        ans += alist[i-1] * pow(2,i-2,mod) * (i+1)
        ans %= mod
        continue
    ans += alist[i-1] * pow(2,i-2,mod) * (i+1) * pow(2,n-i-1,mod)
    ans %= mod
print(ans)
0