結果
| 問題 |
No.2754 Cumulate and Drop
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-10 22:58:52 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 191 bytes |
| コンパイル時間 | 341 ms |
| コンパイル使用メモリ | 82,368 KB |
| 実行使用メモリ | 321,548 KB |
| 最終ジャッジ日時 | 2024-12-20 07:08:48 |
| 合計ジャッジ時間 | 37,962 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 TLE * 12 |
ソースコード
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)