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