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-68e9d8e82e7ff859057001/]B.MaximumAbsurdity每K个的和求出来以后,就是找距离超过K的两个数相加的最大值[crayon-68e9d8e82e80c180942705/]C.Students'Revengehttp://m.blog.csdn.net/blog/u010638776/10044315[crayon-68e9d8e82e81a240410193/]D.TheftofBlueprintswmd神犇:http://blog.csdn.net/wmdcstdio/article/details/44755115[crayon-68e9d8e82e823428428762/]E.Binary...
1379.RunAway模拟退火裸题[crayon-68e9d8e830784139952693/]2758.CheckingtheText暴力+哈希[crayon-68e9d8e830794966023966/]poj3156.Interconnect由于状态是满足拓扑序的,所以直接dp上,再用个hash记忆化[crayon-68e9d8e83079f497697481/]1837.Balancef(i,j)前i个力矩为j的方案,dp[crayon-68e9d8e8307aa486458668/]3609.ResetSequence状压+bfs初始集合是0-n-1每个指令会使得集合中的一些元素消失,目标状态是只有一个0[c...
poj2245.Lotto裸搜索[crayon-68e9d8e87111a658677752/]poj2601.Simplecalculations推公式麻烦。。直接二分[crayon-68e9d8e871124002512394/]poj1635.Subwaytreesystems树的同构,哈希[crayon-68e9d8e871129631438056/]poj2419.Forests暴力即可[crayon-68e9d8e87112f095418831/]poj1717.Dominoesdp水题[crayon-68e9d8e871134701381842/]poj2949.WordRings建图+分数规划[crayon-68e9d8e87113a963709949/] ...
近期评论