Namisplayingwithastringonhiscomputer.ThestringconsistsofnlowercaseEnglishletters.Itismeaningless,soNamdecidedtomakethestringmorebeautiful,thatistomakeitbeapalindromebyusing4arrowkeys:left,right,up,down.Thereisacursorpointingatsomesymbolofthestring.Supposethatcursorisatpositioni(1 ≤ i ≤ n,thestringuses1-basedindexing)now.Leftandrightarrowkeysareusedtomovecursoraroundthestring.Thestri...
赛前不知道做啥,不想打游戏,就找点easy的题练手,水了7题。。。「codechefCHEFGR」ChefandGround[crayon-684696fa1e215639791533/]「codechefPRPOTION」MagicalGirlandColoredLiquidPotions[crayon-684696fa1e21e714899505/]「codechefFATCHEF」Remypaintsthefence[crayon-684696fa1e223799990914/]「codechefCHEFLR」ChefandLeft-Right[crayon-684696fa1e226227965891/]「codechefDIS...
近期评论