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