結果

問題 No.2754 Cumulate and Drop
ユーザー Ekiben542Ekiben542
提出日時 2024-05-10 22:57:03
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 155 bytes
コンパイル時間 329 ms
コンパイル使用メモリ 82,352 KB
実行使用メモリ 222,920 KB
最終ジャッジ日時 2024-05-10 22:57:08
合計ジャッジ時間 5,141 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
59,248 KB
testcase_01 AC 37 ms
52,652 KB
testcase_02 AC 37 ms
53,420 KB
testcase_03 AC 67 ms
75,768 KB
testcase_04 AC 50 ms
63,744 KB
testcase_05 AC 68 ms
75,912 KB
testcase_06 AC 42 ms
58,388 KB
testcase_07 AC 57 ms
67,452 KB
testcase_08 TLE -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
while N > 1:
    B = [sum(A[:i+1]) for i in range(N)]
    A = B[1:]
    N -= 1
print(A[0] % 998244353)
0