版本比较
题解:P4719 【模板】动态 DP
正文
增加 2 行删除 2 行
127 行未改动全部展开12812913013113213213313413513619 行未改动156157158159160160161162163164121 行未改动全部展开127 行未改动全部展开
现在,所有操作都讲完了若有问题,欢迎指正,现给出完整代码:(注:这个代码是加强版的代码,稍微卡了一下常)
```cpp#include<bits/stdc++.h> #include<bits/stdc++.h>#define ls(x) tree[x].son[0]#define rs(x) tree[x].son[1]#define fa(x) tree[x].fausing namespace std;19 行未改动 x*=f; } template<typename T> inline void out(T x) {
if(x<0){x=-x;putchar('-');} if(x>9)out(x/10); putchar(x%10+'0'); }121 行未改动全部展开