摘要: 多项式积分。注意化简和符号即可。降幂!!!View Code 1 /* 2 多项式积分 3 */ 4 #include<stdio.h> 5 #include<string.h> 6 #include<stdlib.h> 7 #include<algorithm> 8 #include<iostream> 9 #include<queue> 10 #include<vector> 11 #include<map> 12 #include<math.h> 13 typedef long l 阅读全文
posted @ 2013-04-10 15:46 xxx0624 阅读(262) 评论(2) 推荐(0) 编辑
摘要: 题意:求a到b的数中,共有多少个1先可以预处理出一位,两位。。等这些数的1的个数,即 sum。然后对于某个特定的 n 位数,假设第一位是1 然后求出有多少种可能的情况(即有多少种可能的数),,然后再枚举第二位,第三位。。。。View Code 1 /* 2 找规律 3 */ 4 #include<stdio.h> 5 #include<string.h> 6 #include<stdlib.h> 7 #include<algorithm> 8 #include<iostream> 9 #include<queue> 10 阅读全文
posted @ 2013-04-10 14:07 xxx0624 阅读(361) 评论(0) 推荐(0) 编辑