![「BZOJ1650」[Usaco2006 Dec] River Hopscotch 跳石子](http://hzwer.com/wp-content/themes/ly/image/image_post/2014-12-10_11-20-30.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/89DF5359-2082-4DFE-8FF7-5C3033C101E4.png)
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_11-11-20.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...
近期评论