poj2245.Lotto裸搜索[crayon-67a2fc6a7432a391182811/]poj2601.Simplecalculations推公式麻烦。。直接二分[crayon-67a2fc6a74333416398180/]poj1635.Subwaytreesystems树的同构,哈希[crayon-67a2fc6a74338605468865/]poj2419.Forests暴力即可[crayon-67a2fc6a7433e914099646/]poj1717.Dominoesdp水题[crayon-67a2fc6a74343354366439/]poj2949.WordRings建图+分数规划[crayon-67a2fc6a74352538966379/] ...
DescriptionBessiehastwocrispredapplestodelivertotwoofherfriendsintheherd.Ofcourse,shetravelstheC(1<=C<=200,000)cowpathswhicharearrangedastheusualgraphwhichconnectsP(1<=P<=100,000)pasturesconvenientlynumberedfrom1..P:nocowpathleadsfromapasturetoitself,cowpathsarebidirectional,eachcowpathhasanassociateddistance,and,bestofall,itisalwayspossibletogetfromanypasturetoanyotherpasture....
近期评论