![「BZOJ1651」[Usaco2006 Feb] Stall Reservations 专用牛棚](http://hzwer.com/wp-content/themes/ly/image/image_post/2014-12-10_11-29-43.jpg)
DescriptionOhthosepickyN(1<=N<=50,000)cows!TheyaresopickythateachonewillonlybemilkedoversomeprecisetimeintervalA..B(1<=A<=B<=1,000,000),whichincludesbothtimesAandB.Obviously,FJmustcreateareservationsystemtodeterminewhichstalleachcowcanbeassignedforhermilkingtime.Ofcourse,nocowwillsharesuchaprivatemomentwithothercows.HelpFJbydetermining:*Theminimumnumberofstallsreq...

Ryoukoisanextremelyforgetfulgirl,shecouldevenforgetsomethingthathasjusthappened.Soinordertoremember,shetakesanotebookwithher,called Ryouko'sMemoryNote.Shewriteswhatsheseesandwhatshehearsonthenotebook,andthenotebookbecamehermemory.ThoughRyoukoisforgetful,sheisalsobornwithsuperbanalyzingabilities.However,analyzingdependsgreatlyongatheredinformation,inotherwords,memory.Soshehastoshufflethr...
![「BZOJ1636」[Usaco2007 Jan] Balanced Lineup](http://hzwer.com/wp-content/themes/ly/image/image_post/2014-12-10_13-26-16.jpg)
DescriptionForthedailymilking,FarmerJohn'sNcows(1<=N<=50,000)alwayslineupinthesameorder.OnedayFarmerJohndecidestoorganizeagameofUltimateFrisbeewithsomeofthecows.Tokeepthingssimple,hewilltakeacontiguousrangeofcowsfromthemilkinglineuptoplaythegame.However,forallthecowstohavefuntheyshouldnotdiffertoomuchinheight.FarmerJohnhasmadealistofQ(1<=Q<=200,000)potentialgroupsofcow...
近期评论