摘要: 从低位到高位数位DP,f[i][j][k]表示已经填了后i位,转化的数字为j,后i位与x后i位的大小关系为k的方案数。#includeconst int N=202,B=7,P=(1P)c.x[i+1]++,c.x[i]&=P; return c; } Num operator-(Num ... 阅读全文
posted @ 2014-11-30 12:36 Claris 阅读(410) 评论(0) 推荐(0) 编辑