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