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