剪枝
Cherry_0525
这个作者很懒,什么都没留下…
展开
-
【DFS+剪枝】HDU - 5113 B - Black And White
B - Black And White HDU - 5113In mathematics, the four color theorem, or the four color map theorem, states that, given any separation of a plane into contiguous regions, producing a figure called ...原创 2018-09-20 19:42:28 · 150 阅读 · 0 评论 -
【暴力+剪枝】 2017ICPC 西安 J LOL
UVALive - 85215个人,一共有100个英雄,0代表他没有,1代表他有敌方什么英雄都有我方和敌方都可以选择五个英雄BAN和PICK,也就是20个英雄不一样解题方法:枚举出我方前四个人的选择英雄的情况,先预存第五个人的英雄数量,前四个人选的英雄要是我也有,就数量--,那么我还有几个就是有多少种情况我方五个人选的英雄的每一种情况都可以*A(95,5)*C(90,...原创 2018-09-26 18:37:26 · 557 阅读 · 1 评论