結果

問題 No.2625 Bouns Ai
ユーザー 👑 p-adicp-adic
提出日時 2024-02-10 20:22:57
言語 cLay
(20240104-1)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 2,639 ms
コンパイル使用メモリ 177,488 KB
実行使用メモリ 6,548 KB
最終ジャッジ日時 2024-02-10 20:23:02
合計ジャッジ時間 5,012 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
6,548 KB
testcase_01 AC 3 ms
6,548 KB
testcase_02 AC 5 ms
6,548 KB
testcase_03 AC 33 ms
6,548 KB
testcase_04 AC 60 ms
6,548 KB
testcase_05 AC 34 ms
6,548 KB
testcase_06 AC 34 ms
6,548 KB
testcase_07 AC 34 ms
6,548 KB
testcase_08 AC 34 ms
6,548 KB
testcase_09 AC 34 ms
6,548 KB
testcase_10 AC 59 ms
6,548 KB
testcase_11 AC 3 ms
6,548 KB
testcase_12 AC 60 ms
6,548 KB
testcase_13 AC 60 ms
6,548 KB
testcase_14 AC 84 ms
6,548 KB
testcase_15 AC 60 ms
6,548 KB
testcase_16 AC 60 ms
6,548 KB
testcase_17 AC 60 ms
6,548 KB
testcase_18 AC 60 ms
6,548 KB
testcase_19 AC 60 ms
6,548 KB
testcase_20 AC 59 ms
6,548 KB
testcase_21 AC 58 ms
6,548 KB
testcase_22 AC 59 ms
6,548 KB
testcase_23 AC 59 ms
6,548 KB
testcase_24 AC 59 ms
6,548 KB
testcase_25 AC 59 ms
6,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
ll@N,@A[N],D=1e5+1,t;vector<Mint>B(2D,1),C(2D);B[0]=0;rep(i,N){REP(j,D)t=j+1+min(0,A[i]-(i?A[i-1]:0)),C[j+1]=j<D-A[i]&t>=0?C[j]+B[t]:C[j];swap(B,C);}wt(B[D]);
0