![「BZOJ3535」[Usaco2014 Open] Fair Photography](http://hzwer.com/wp-content/themes/ly/image/image_post/2014-12-10_13-21-03.jpg)
DescriptionFJ'sNcows(1<=N<=100,000)arestandingatvariouspositionsalongalongone-dimensionalfence.Theithcowisstandingatpositionx_i(anintegerintherange0...1,000,000,000)andhasbreedb_i(anintegerintherange1..8).Notwocowsoccupythesameposition.FJwantstotakeaphotoofacontiguousintervalofcowsforthecountyfair,butwewantsallofhisbreedstobefairlyrepresentedinthephoto.Therefore,hewantstoensurethat...

1379.RunAway模拟退火裸题[crayon-693bd966a0535195419088/]2758.CheckingtheText暴力+哈希[crayon-693bd966a053e838650689/]poj3156.Interconnect由于状态是满足拓扑序的,所以直接dp上,再用个hash记忆化[crayon-693bd966a0553862165821/]1837.Balancef(i,j)前i个力矩为j的方案,dp[crayon-693bd966a055a152466872/]3609.ResetSequence状压+bfs初始集合是0-n-1每个指令会使得集合中的一些元素消失,目标状态是只有一个0[c...

poj2245.Lotto裸搜索[crayon-693bd966a0d66591863780/]poj2601.Simplecalculations推公式麻烦。。直接二分[crayon-693bd966a0d6f854130968/]poj1635.Subwaytreesystems树的同构,哈希[crayon-693bd966a0d76115838522/]poj2419.Forests暴力即可[crayon-693bd966a0d7c235335039/]poj1717.Dominoesdp水题[crayon-693bd966a0d82268906165/]poj2949.WordRings建图+分数规划[crayon-693bd966a0d8a022718796/] ...
近期评论