
Namisplayingwithastringonhiscomputer.ThestringconsistsofnlowercaseEnglishletters.Itismeaningless,soNamdecidedtomakethestringmorebeautiful,thatistomakeitbeapalindromebyusing4arrowkeys:left,right,up,down.Thereisacursorpointingatsomesymbolofthestring.Supposethatcursorisatpositioni(1 ≤ i ≤ n,thestringuses1-basedindexing)now.Leftandrightarrowkeysareusedtomovecursoraroundthestring.Thestri...

赛前不知道做啥,不想打游戏,就找点easy的题练手,水了7题。。。「codechefCHEFGR」ChefandGround[crayon-6a06d8994555e586984194/]「codechefPRPOTION」MagicalGirlandColoredLiquidPotions[crayon-6a06d89945566657400684/]「codechefFATCHEF」Remypaintsthefence[crayon-6a06d8994556b057874752/]「codechefCHEFLR」ChefandLeft-Right[crayon-6a06d8994556f370130943/]「codechefDIS...
近期评论