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