斐波那契串(fib)
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
【样例输入】
aabbaab
【样例输出】
8
样例 #2
见下发 。
该测试点满足测试点 的性质。
数据范围
测试点编号 | |
---|---|
对所有数据保证 , 只包含 两种字符。
NOIP 模拟赛(六)
- Status
- Done
- Rule
- OI
- Problem
- 4
- Start at
- 2024-8-17 7:45
- End at
- 2024-8-17 12:15
- Duration
- 4.5 hour(s)
- Host
- Partic.
- 18