当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

BZOJ1524:[POI2006]Pal

题目描述
给出n个回文串s1, s2, …, sn 求如下二元组(i, j)的个数 si + sj 仍然是回文串 规模 输入串总长不超过2M bytes
输入解释
The first line of input file contains the number of strings n. The following n lines describe each string: The i+1-th line contains the length of the i-th string li, then a single space and a string of li small letters of English alphabet. You can assume that the total length of all strings will not exceed 2,000,000. Two strings in different line may be the same.
输出解释
Print out only one integer, the number of palindromes
输入样例
6 
2 aa 
3 aba 
3 aaa 
6 abaaba 
5 aaaaa 
4 abba
输出样例
14

该题目包含在题集 大视野(八中)OJ 中

题目来源 BZOJ 1524

源链接: LOCAL-BZOJ1524

共提交 0 次

通过率 --%
时间上限 内存上限
5000 MS 357 MB