DescriptionInputOutput对于每组数据,若最小的不协调度不超过1018,则第一行一个数表示不协调度若最小的不协调度超过1018,则输出"Toohardtoarrange"(不包含引号)。每个输出后面加"--------------------"SampleInput4493brysj,hhrhl.yqqlm,gsycl.492brysj,hhrhl.yqqlm,gsycl.110056poet110046poetSampleOutput108--------------------32--------------------Toohardtoarrange--------------------1000000000000000000---...
Namisplayingwithastringonhiscomputer.ThestringconsistsofnlowercaseEnglishletters.Itismeaningless,soNamdecidedtomakethestringmorebeautiful,thatistomakeitbeapalindromebyusing4arrowkeys:left,right,up,down.Thereisacursorpointingatsomesymbolofthestring.Supposethatcursorisatpositioni(1 ≤ i ≤ n,thestringuses1-basedindexing)now.Leftandrightarrowkeysareusedtomovecursoraroundthestring.Thestri...
赛前不知道做啥,不想打游戏,就找点easy的题练手,水了7题。。。「codechefCHEFGR」ChefandGround[crayon-68216260207ed399644037/]「codechefPRPOTION」MagicalGirlandColoredLiquidPotions[crayon-68216260207fa921840920/]「codechefFATCHEF」Remypaintsthefence[crayon-6821626020815188793520/]「codechefCHEFLR」ChefandLeft-Right[crayon-682162602081d157407305/]「codechefDIS...
近期评论