回文串
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
问题陈述
给你一个由大写英文字母组成的字符串 。
求满足以下两个条件的整数三元组 的个数:
长度为 的字符串 , , 和 按此顺序连接而成的字符串是一个回文字符串。
这里, , 表示 ,的长度, 表示 的第 个字符。
输入格式
一个字符串 。
输出格式
一行一个整数表示答案
样例1
input
ABCACC
output
5
样例2
input
OOOOOOOO
output
56
限制与约定
对于 的数据, 。
对于 的数据, 。
对于 的数据, ,字符串中均为大写字母。
- 时间限制:
- 空间限制:
[柳泉中学,龙凤苑中学]拔高班第二次训练
- Status
- Done
- Rule
- IOI
- Problem
- 6
- Start at
- 2025-3-11 19:30
- End at
- 2025-3-11 21:30
- Duration
- 2 hour(s)
- Host
- Partic.
- 63