結果

問題 No.2754 Cumulate and Drop
ユーザー 2000 Ekiben2000 Ekiben
提出日時 2024-05-10 22:58:52
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 191 bytes
コンパイル時間 192 ms
コンパイル使用メモリ 82,352 KB
実行使用メモリ 267,264 KB
最終ジャッジ日時 2024-05-10 22:58:57
合計ジャッジ時間 4,437 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
59,424 KB
testcase_01 AC 39 ms
52,772 KB
testcase_02 AC 39 ms
52,072 KB
testcase_03 AC 41 ms
59,140 KB
testcase_04 AC 45 ms
58,904 KB
testcase_05 AC 41 ms
59,600 KB
testcase_06 AC 38 ms
52,420 KB
testcase_07 AC 42 ms
57,976 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()))
MOD = 998244353

while N > 1:
    for i in range(1, N):
        A[i] = (A[i] + A[i - 1]) % MOD
    A = A[1:]
    N -= 1

print(A[0] % MOD)
0