captive专题

杭电acm1085.Holding Bin-Laden Captive!(母函数)

/********************************题目大意:不可以用num1个1,num2个2,num3个5组合得到的最小数;题目解析:求(1+x+.....+x^num1)(1+x^2+....+x^(2*num2))(1+x^5+....X^(5*num3))的系数为零的指数;若系数都不为零,则最小数为sum+1;错误分析:1.不能确定j的循环次数;2.没有把M数值

HDU——1085 Holding Bin-Laden Captive!(母函数)

Problem Description We all know that Bin-Laden is a notorious terrorist, and he has disappeared for a long time. But recently, it is reported that he hides in Hang Zhou of China! “Oh, God! How terri

【HDU 1085】【母函数】Holding Bin-Laden Captive!【给你a1个一元硬币,a2个两元硬币,a3个五元硬币,问不能凑出来的第一个面额是多少】

传送门:http://acm.split.hdu.edu.cn/showproblem.php?pid=1085 描述: Holding Bin-Laden Captive! Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 2