![「BZOJ3535」[Usaco2014 Open] Fair Photography](http://hzwer.com/wp-content/themes/ly/image/image_post/2014-12-10_12-28-36.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...

A.DowntheHatch!阅读+模拟题[crayon-693b17df73952632464103/]B.MaximumAbsurdity每K个的和求出来以后,就是找距离超过K的两个数相加的最大值[crayon-693b17df73961145797415/]C.Students'Revengehttp://m.blog.csdn.net/blog/u010638776/10044315[crayon-693b17df7396d400186147/]D.TheftofBlueprintswmd神犇:http://blog.csdn.net/wmdcstdio/article/details/44755115[crayon-693b17df739a7497868363/]E.Binary...

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

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