• 「BZOJ3856」Monster

    「BZOJ3856」Monster

    DescriptionTeacherMaihasakingdom.Amonsterhasinvadedthiskingdom,andTeacherMaiwantstokillit.MonsterinitiallyhashHP.AnditwilldieifHPislessthan1.TeacherMaiandmonstertaketurnstodotheiraction.Inoneround,TeacherMaicanattackthemonstersothattheHPofthemonsterwillbereducedbya.Attheendofthisround,theHPofmonsterwillbeincreasedbyb.Afterkconsecutiveround'sattack,TeacherMaimusttakearestin...

    02015年1月20日2,515模拟
  • 「codechef」January Challenge 2015

    「codechef」January Challenge 2015

    CHEFSTON[crayon-676cc754593a8172275154/]GCDQgcd满足区间加法TAT,所以维护前缀和后缀和就好了[crayon-676cc754593b1955102543/]SEAVOTE去掉所有0后若∑bi<tot或∑bi>=100+n则无解否则有解[crayon-676cc754593b7539743981/]ONEKING按照右端点排序,选择第一个的右端点,删去覆盖其的线段。。。剩下的线段同理[crayon-676cc754593bb326147154/]CLPERM答案根据第一个不能合成的数奇偶性得...

  • 「codechef」December Challenge 2014

    「codechef」December Challenge 2014

    「codechefCAPPLE」ChefandAppleTrees其实我想练习打字,点开codechef随便做。。。后来发现这是在challenge,后来补了俩题[crayon-676cc75477796286069635/]「codechefXORSUB」XORwithSubset求线性基,裸题[crayon-676cc7547779f336992040/]「codechefSANSKAR」Alok-nathandHisSanskars从大到小排序后优先用大的合成随便搜索一下TAT这样过了codechef但是似乎会被构造卡掉144151017161211020171945...

    02015年1月9日3,073模拟,深度搜索,高斯消元
  • Fair Photography [Brian Dean, 2014]

    Fair Photography [Brian Dean, 2014]

    http://218.5.5.242:9018/JudgeOnline/problem.php?id=1592题目描述FarmerJohn'sNcows(1<=N<=100,000)arestandingatvariouspositionsalongalongone-dimensionalfence. Theithcowisstandingatpositionx_i(anintegerintherange0...1,000,000,000)andhasbreedb_i(either'G'forGuernseyor'H'forHolstein). Notwocowsoccupythesameposition.FJwantstotakeaphotoofacontiguousintervalofcowsforthecountyfair,butw...

    02015年1月5日2,804模拟
  • 「CF493C」Vasya and Basketball

    「CF493C」Vasya and Basketball

    Vasyafollowsabasketballgameandmarksthedistancesfromwhicheachteammakesathrow.Heknowsthateachsuccessfulthrowhasvalueofeither2or3points.Athrowisworth2pointsifthedistanceitwasmadefromdoesn'texceedsomevalueofdmeters,andathrowisworth3pointsifthedistanceislargerthandmeters,wheredissomenon-negativeinteger.Vasyawouldliketheadvantageofthepointsscoredbythefirstteam(thepointsofthefirstteamminusthepointsof...

    02014年12月4日3,534模拟
  • 「CF493B」Vasya and Wrestling

    「CF493B」Vasya and Wrestling

    Vasyahasbecomeinterestedinwrestling.Inwrestlingwrestlersusetechniquesforwhichtheyareawardedpointsbyjudges.Thewrestlerwhogetsthemostpointswins.Whenthenumbersofpointsofbothwrestlersareequal,thewrestlerwhosesequenceofpointsislexicographicallygreater,wins.Ifthesequencesoftheawardedpointscoincide,thewrestlerwhoperformedthelasttechniquewins.Yourtaskistodeterminewhichwrestlerwon.InputThefirstline...

    02014年12月4日2,730模拟
  • 「CF493A」Vasya and Football

    「CF493A」Vasya and Football

    Vasyahasstartedwatchingfootballgames.Hehaslearnedthatforsomefoulstheplayersreceiveyellowcards,andforsomefoulstheyreceiveredcards.Aplayerwhoreceivesthesecondyellowcardautomaticallyreceivesaredcard.Vasyaiswatchingarecordedfootballmatchnowandmakesnotesofallthefoulsthathewouldgiveacardfor.HelpVasyadetermineallthemomentsintimewhenplayerswouldbegivenredcardsifVasyawerethejudge.Foreachplayer,Vas...

    02014年12月4日2,647模拟
  • 「CF492B」Vanya and Lanterns

    「CF492B」Vanya and Lanterns

    Vanyawalkslateatnightalongastraightstreetoflengthl,litbynlanterns.Considerthecoordinatesystemwiththebeginningofthestreetcorrespondingtothepoint0,anditsendcorrespondingtothepointl.Thenthei-thlanternisatthepointai.Thelanternlightsallpointsofthestreetthatareatthedistanceofatmostdfromit,wheredissomepositivenumber,commonforalllanterns.Vanyawonders:whatistheminimumlightradiusdshouldthelanternshavet...

    02014年12月2日2,107模拟
  • 「CF492A」Vanya and Cubes

    「CF492A」Vanya and Cubes

    Vanyagotncubes.Hedecidedtobuildapyramidfromthem.Vanyawantstobuildthepyramidasfollows:thetoplevelofthepyramidmustconsistof1cube,thesecondlevelmustconsistof1 + 2 = 3cubes,thethirdlevelmusthave1 + 2 + 3 = 6cubes,andsoon.Thus,thei-thlevelofthepyramidmusthave1 + 2 + ... + (i - 1) + icubes.Vanyawantstoknowwhatisthemaximumheightofthepyramidthathecanmakeusingthegivencubes.InputT...

    02014年12月2日2,484模拟
  • NOIP2014无线网络发射器选址

    NOIP2014无线网络发射器选址

     题目描述Description随着智能手机的日益普及,人们对无线网的需求日益增大。某城市决定对城市内的公共场所覆盖无线网。假设该城市的布局为由严格平行的129条东西向街道和129条南北向街道所形成的网格状,并且相邻的平行街道之间的距离都是恒定值1。东西向街道从北到南依次编号为0,1,2…128,南北向街道从西到东依次编号为0,1,2…128。东西向街道和南北向街道相交形成路口,规定编号为x的南北向街道和编号为y的东西向街道形成的路...

    32014年11月22日2,745模拟
  • NOIP2014生活大爆炸版石头剪刀布

    NOIP2014生活大爆炸版石头剪刀布

     题目描述Description石头剪刀布是常见的猜拳游戏:石头胜剪刀,剪刀胜布,布胜石头。如果两个人出拳一样,则不分胜负。在《生活大爆炸》第二季第8集中出现了一种石头剪刀布的升级版游戏。升级版游戏在传统的石头剪刀布游戏的基础上,增加了两个新手势:斯波克:《星际迷航》主角之一。蜥蜴人:《星际迷航》中的反面角色。这五种手势的胜负关系如表一所示,表中列出的是甲对乙的游戏结果。现在,小A和小B尝试玩这种升级版的猜拳...

    12014年11月22日3,083模拟
  • 「codechefCHEFGR」NOIP2014赛前刷水

    「codechefCHEFGR」NOIP2014赛前刷水

    赛前不知道做啥,不想打游戏,就找点easy的题练手,水了7题。。。「codechefCHEFGR」ChefandGround[crayon-676cc7547a75e870718050/]「codechefPRPOTION」MagicalGirlandColoredLiquidPotions[crayon-676cc7547a767613308579/]「codechefFATCHEF」Remypaintsthefence[crayon-676cc7547a76b565638119/]「codechefCHEFLR」ChefandLeft-Right[crayon-676cc7547a76f671601652/]「codechefDIS...

    02014年11月7日2,954模拟,STL,贪心
5 / 18 « 上一页 1 ...3 4 5 6 7 ...18 下一页 »