摘要: 1 Template 1.1 轻量化 灵活度较高,适合直接调用矩阵内值的情形。 typedef vector<vector<int>> Matrix; void resize (Matrix& a, int n, int m) { a.resize(n, vector<int>(m)); } Mat 阅读全文
posted @ 2024-08-06 11:07 CloudWings 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 新高一矩阵选讲「陶治霖」 https://www.becoder.com.cn/contest/5348 一般的转移矩阵可以放在初始矩阵的前面或者后面,下面为了叙述方便分别成为:前置转移矩阵、后置转移矩阵。 「CF1970E3」Trails (Hard) 考虑 DP。 定义 \(f_{i,j}\) 阅读全文
posted @ 2024-08-06 09:12 CloudWings 阅读(14) 评论(0) 推荐(0) 编辑