摘要: Description 考虑一个只包含小写拉丁字母的字符串s。我们定义s的一个子串t的“出 现值”为t在s中的出现次数乘以t的长度。请你求出s的所有回文子串中的最 大出现值。 Input 输入只有一行,为一个只包含小写字母(a z)的非空字符串s。 Output 输出一个整数,为回文子串的最大出现值 阅读全文
posted @ 2019-01-17 21:13 Hyscere 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Description 输入一个长度为n的数组{ai}(1 using namespace std; const int mod = 1000000007; void read(int &x) { x=0;int f=1;char ch=getchar(); for(;!isdigit(ch);ch 阅读全文
posted @ 2019-01-17 16:36 Hyscere 阅读(234) 评论(0) 推荐(0) 编辑