摘要: ###关键 这个题目很值得学习呀! 看着是不能记录所有的状态,但是可以映射一下,然后就是直接线性dp了 ###代码 #include <bits/stdc++.h> using namespace std; const int M=2e6+5; const int mod=998244353; us 阅读全文
posted @ 2022-12-30 22:00 basicecho 阅读(28) 评论(0) 推荐(0)
摘要: 完全背包 阅读全文
posted @ 2022-12-30 11:07 basicecho 阅读(20) 评论(0) 推荐(0)