POJ3252——數位dp

數位DP,難點在處理前導0.ios #include <cstdio> #include<iostream> using namespace std; typedef long long ll; const int N = 1e5+7; int di[50]; ll dp[50][100];//二進制下 ,0-第i位,1的個數小於等於j的數 的個數 ll dfs(int len,int num
相關文章
相關標籤/搜索