随笔分类 -  图论

摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3618ProblemDescriptionFJhastwosamehousesforrant.Nowhehasn(1≤n≤1000)pieceoforder,theordersaregiveninthef... 阅读全文
posted @ 2013-06-04 10:41 Oyking 阅读(348) 评论(0) 推荐(0)
摘要:ProblemDescriptionAgroupofthievesisapproachingamuseuminthecountryofzjsxzy,nowtheyareincityA,andthemuseumisincityB,wherekeepsmanybrokenlegsofzjsxzy.Luckily,GWlearnedtheconspiracywhenheiswatchingstarsandtoldittozjsxzy.Zjsxzydecidedtocaughtthesethieves,andheletthepolicetodothis,thepolicetrytocatchthemo 阅读全文
posted @ 2013-06-04 10:38 Oyking 阅读(359) 评论(0) 推荐(0)
摘要:Arobothasbeensenttoexplorearemoteplanet.Tospecifythepaththerobotshouldtake,aprogramissenteachday.Theprogramconsistsofasequenceofthefollowingcommands:F... 阅读全文
posted @ 2013-06-04 10:24 Oyking 阅读(249) 评论(0) 推荐(0)
摘要:DescriptionInacity,busisthemostpopularvehicleforcitizenstogofromoneplacetoanother.Unfortunately,sometimesonepersoncannottravelfromonebusstationtoanotherdirectly,becausethereisnobuslinethroughthesetwostations.Sohehadtogotoamedialstationfromthestartingstation,thenchangestoabuswhichgofromthisintermedia 阅读全文
posted @ 2013-06-04 10:22 Oyking 阅读(294) 评论(0) 推荐(0)