数位dp练习
数位dp不要62 HDU - 2089windy数 洛谷 P2657 [SCOI2009]
不要62 HDU - 2089
做法一:
#include<bits/stdc++.h>
using namespace std;
const int N=30;
int f[N][N];
int a[N],len;
int dfs(int pos,int pre,bool limit){
if(!pos) return 1;
if(!limit&&~f[pos][pre
原创
2020-12-01 20:54:18 ·
98 阅读 ·
0 评论