• 「NOIP模拟赛」词编码

    「NOIP模拟赛」词编码

    一个发送机可以通过一条隧道发送一些以二进制代码组成的单词。在其尽头的接收机可以使用特殊技术恢复到最初的单词。每个单词最初都由0和1组成。所有的单词最-初长度都为n(4≤N ≤l000)。当穿过隧道之后单词可能发生以下几种情况之一:(1)任意(一个)0被1取代(2)任意(一个)符号被删除(3)一个符号(0或1)被插入到任何位置(4)不改变我们知道最初的单词都具有以下性质:有1的位置号的总和是N+1的倍数,或者是0.InputN和转换后的单词...

    02014年7月8日2,699模拟
  • 「CF442A」Borya and Hanabi

    「CF442A」Borya and Hanabi

    HaveyoueverplayedHanabi?Ifnot,thenyou'vegottotryitout!Thisproblemdealswithasimplifiedversionofthegame.Overall,thegamehas25typesofcards(5distinctcolorsand5distinctvalues).Boryaisholding n cards.ThegameissomewhatcomplicatedbythefactthateverybodyseesBorya'scardsexceptforBoryahimself.Boryaknowswhichcardshehasbutheknowsnothingabouttheordertheyliein.NotethatBoryacanhavemultipleidenticalcar...

    02014年6月20日4,093模拟
  • 「CF252A」Valera and Antique Items

    「CF252A」Valera and Antique Items

    Valeraisacollector.Oncehewantedtoexpandhiscollectionwithexactlyoneantiqueitem.Valeraknows n sellersofantiques,the i-thofthemauctioned ki items.Currentlytheauctionpriceofthe j-thobjectofthe i-thsellerissij.Valeragetsonwellwitheachofthe n sellers.Heisperfectlysurethatifheoutbidsthecurrentpriceofoneoftheitemsintheauction(inotherwords,offersthesellerthemoneythatisstrictlygreaterthanthec...

    02014年6月19日2,423模拟
  • 「泉七培训 – 郑予凡」天罚

    「泉七培训 - 郑予凡」天罚

    20%的数据直接模拟不过要利用弧度制的反三角函数atan2[crayon-6743c40382ba6629346091/] 

    02014年6月14日2,174模拟
  • 「CF439A」Devu, the Singer and Churu, the Joker

    「CF439A」Devu, the Singer and Churu, the Joker

    Devuisarenownedclassicalsinger.Heisinvitedtomanybigfunctions/festivals.Recentlyhewasinvitedto"AllWorldClassicalSingingFestival".OtherthanDevu,comedianChuruwasalsoinvited.Devuhasprovidedorganizersalistofthesongsandrequiredtimeforsingingthem.Hewillsing n songs,ith songwilltake ti minutesexactly.TheComedian,Churuwillcrackjokes.Allhisjokesareof5minutesexactly.Peoplehavemainlycom...

    02014年6月7日2,857模拟
  • 「CF440B」Balancer

    「CF440B」Balancer

    Petyahas k matches,placedin n matchboxeslyinginalinefromlefttoright.Weknowthat k isdivisibleby n.Petyawantsallboxestohavethesamenumberofmatchesinside.Forthat,hecanmoveamatchfromitsboxtotheadjacentoneinonemove.Howmanysuchmovesdoesheneedtoachievethedesiredconfiguration?InputThefirstlinecontainsinteger n (1 ≤ n ≤ 50000).Thesecondlinecontains n non-negativenumbersthatdonotexce...

    02014年6月4日2,032模拟
  • 「CF440A」Forgotten Episode

    「CF440A」Forgotten Episode

    PolycarpusadoresTVseries.Rightnowheisreadytofinishwatchingaseasonofapopularsitcom"GraphTheory".Intotal,theseasonhas n episodes,numberedwithintegersfrom 1 to n.Polycarpuswatchesepisodesnotonebyonebutinarandomorder.Hehasalreadywatchedalltheepisodesexceptforone.WhichepisodehasPolycaprusforgottentowatch?InputThefirstlineoftheinputcontainsinteger n (2 ≤ n ≤ 100000) —thenumbe...

    02014年6月4日2,105模拟
  • 「CF437A」The Child and Homework

    「CF437A」The Child and Homework

    Onceuponatimeachildgotatestconsistingofmultiple-choicequestionsashomework.Amultiple-choicequestionconsistsoffourchoices: A, B, C and D.Eachchoicehasadescription,andthechildshouldfindouttheonlyonethatiscorrect.Fortunatelythechildknowshowtosolvesuchcomplicatedtest.Thechildwillfollowthealgorithm:Ifthereissomechoicewhosedescriptionatleasttwiceshorterthanallotherdescriptions,oratleasttwi...

    02014年6月2日2,340模拟
  • 「CF435C」Cardiogram

    「CF435C」Cardiogram

    Inthisproblem,yourtaskistouseASCIIgraphicstopaintacardiogram.Acardiogramisapolylinewiththefollowingcorners:Thatis,acardiogramisfullydefinedbyasequenceofpositiveintegers a1, a2, ..., an.Yourtaskistopaintacardiogrambygivensequence ai.InputThefirstlinecontainsinteger n (2 ≤ n ≤ 1000).Thenextlinecontainsthesequenceofintegersa1, a2, ..., an (1 ≤ ai ≤ 1000).Itisguaran...

    02014年5月31日2,514模拟
  • 「CF435A」Queue on Bus Stop

    「CF435A」Queue on Bus Stop

    It'sthattimeoftheyearwhentheRussiansfloodtheircountrysidesummercottages(dachas)andthebusstophasalotofpeople.Peoplerarelygotothedachaontheirown,it'susuallyagroup,sothepeoplestandinqueuebygroups.Thebusstopqueuehas n groupsofpeople.The i-thgroupfromthebeginninghas ai people.Every30 minutesanemptybusarrivesatthebusstop,itcancarryatmost m people.Naturally,thepeoplefromthefirstgroupentert...

    02014年5月31日2,466模拟
  • 「BZOJ1028」[JSOI2007] 麻将

    「BZOJ1028」[JSOI2007] 麻将

    Description麻将是中国传统的娱乐工具之一。麻将牌的牌可以分为字牌(共有东、南、西、北、中、发、白七种)和序数牌(分为条子、饼子、万子三种花色,每种花色各有一到九的九种牌),每种牌各四张。在麻将中,通常情况下一组和了的牌(即完成的牌)由十四张牌组成。十四张牌中的两张组成对子(即完全相同的两张牌),剩余的十二张组成三张一组的四组,每一组须为顺子(即同花色且序数相连的序数牌,例如条子的三、四、五)或者是...

    02014年5月27日4,144模拟
  • 「CF433A」Kitahara Haruki’s Gift

    「CF433A」Kitahara Haruki's Gift

    KitaharaHarukihasbought n applesforToumaKazusaandOgisoSetsuna.Nowhewantstodividealltheapplesbetweenthefriends.Eachappleweights100gramsor200grams.OfcourseKitaharaHarukidoesn'twanttooffendanyofhisfriend.ThereforethetotalweightoftheapplesgiventoToumaKazusamustbeequaltothetotalweightoftheapplesgiventoOgisoSetsuna.ButunfortunatelyKitaharaHarukidoesn'thaveakniferightnow,sohecannotsp...

    02014年5月24日2,140模拟
9 / 18 « 上一页 1 ...7 8 9 10 11 ...18 下一页 »