摘要: cpp include define int long long using namespace std ; int l , r , num[15] ; int f[15][15][15][2][2][2][2] ; int dfs(int p ,int a ,int b ,int c ,int d 阅读全文
posted @ 2019-11-01 20:46 _L_Y_T 阅读(112) 评论(0) 推荐(0) 编辑
摘要: ~~逃掉比赛来这里写数位DP的小结~~ $\text说到数位DP,做了几道题之后,会发现全都是一个格式下来的$ $\text无非就是这么一个格式 : $ 然后我们惊奇的发现,我们 需要考虑的就是这么几个限制了 然后,我们通常是要考虑的限制是: 是否有前导零,是否是上界 我们的模板就变成了 下面看几个 阅读全文
posted @ 2019-11-01 20:14 _L_Y_T 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 数位DP练习 输入 输出 设f[i][0/1]表示i位的前一位是不是6 cpp include include include include include include include using namespace std ; int read() { int x = 0 , f = 1 ; 阅读全文
posted @ 2019-11-01 15:54 _L_Y_T 阅读(128) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-11-01 09:22 _L_Y_T 阅读(1) 评论(0) 推荐(0) 编辑