![「BZOJ1650」[Usaco2006 Dec] River Hopscotch 跳石子](http://hzwer.com/wp-content/themes/ly/image/image_post/2014-12-10_11-13-19.jpg)
DescriptionEveryyearthecowsholdaneventfeaturingapeculiarversionofhopscotchthatinvolvescarefullyjumpingfromrocktorockinariver.Theexcitementtakesplaceonalong,straightriverwitharockatthestartandanotherrockattheend,Lunitsawayfromthestart(1<=L<=1,000,000,000).Alongtheriverbetweenthestartingandendingrocks,N(0<=N<=50,000)morerocksappear,eachatanintegraldistanceDifromthestart(0<Di...
![「BZOJ1628」[Usaco2007 Demo] City skyline](http://hzwer.com/wp-content/themes/ly/image/image_post/2014-12-10_11-27-47.jpg)
DescriptionThebestpartofthedayforFarmerJohn'scowsiswhenthesunsets.Theycanseetheskylineofthedistantcity.Bessiewondershowmanybuildingsthecityhas.Writeaprogramthatassiststhecowsincalculatingtheminimumnumberofbuildingsinthecity,givenaprofileofitsskyline.Thecityinprofileisquitedullarchitecturally,featuringonlybox-shapedbuildings.Theskylineofacityonthehorizonissomewherebetween1andWunitswide(1&...
![「BZOJ1688」[Usaco2005 Open] Disease Manangement 疾病管理](http://hzwer.com/wp-content/themes/ly/image/image_post/2014-12-10_13-22-54.jpg)
DescriptionAlas!AsetofD(1<=D<=15)diseases(numbered1..D)isrunningthroughthefarm.FarmerJohnwouldliketomilkasmanyofhisN(1<=N<=1,000)cowsaspossible.IfthemilkedcowscarrymorethanK(1<=K<=D)differentdiseasesamongthem,thenthemilkwillbetoocontaminatedandwillhavetobediscardedinitsentirety.PleasehelpdeterminethelargestnumberofcowsFJcanmilkwithouthavingtodiscardthemilk.Input...

DescriptionThecowshaverunoutofhay,ahorribleeventthatmustberemediedimmediately.Bessieintendstovisittheotherfarmstosurveytheirhaysituation.ThereareN(2<=N<=2,000)farms(numbered1..N);BessiestartsatFarm1.She'lltraversesomeoralloftheM(1<=M<=10,000)two-wayroadswhoselengthdoesnotexceed1,000,000,000thatconnectthefarms.Somefarmsmaybemultiplyconnectedwithdifferentlengthroads.Allfarm...
近期评论