摘要: 统计n以下所有有x次4和y次7的数的个数,然后二分。View Code 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<cstdlib> 5 using namespace std; 6 typedef long long LL; 7 int const N = 22; 8 int const M = 22; 9 LL dp[N][N][N];10 int bit[N],ln;11 int x,y;12 LL getsum1(int t,int limi 阅读全文
posted @ 2013-05-09 19:37 诺小J 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 其实我不知道要说什么,因为这道题的解法也是从别人那里看的,不想盗版,看看这位神牛的吧,讲得挺不错,就是要好生理解一下。http://blog.csdn.net/xymscau/article/details/6688671View Code 1 #include<iostream> 2 #include<cstdio> 3 #include<cstdlib> 4 #include<cstring> 5 typedef long long LL; 6 int const N = 33; 7 LL dp[N],pow2[N]; 8 void pre( 阅读全文
posted @ 2013-05-09 15:32 诺小J 阅读(194) 评论(0) 推荐(0) 编辑