程帅霞

不断受挫,不停起身,不断追寻,不止AC~~

导航

2020年8月4日 #

F - Cheapest Palindrome

摘要: 有一个长度为m的字符串,由n种小写字母组成。对应的n种字母在这个字符串加上或者减去都有相应的费用,现在要将这个字符串变成回文串,问最低消费是多少? Keeping track of all the cows can be a tricky task so Farmer John has instal 阅读全文

posted @ 2020-08-04 21:58 程帅霞 阅读(95) 评论(0) 推荐(0)