到底有多少个公共子序列
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.
Background
求 个字符序列有多少个不同的公共子序列。
Format
Input
第一行为一个正整数 ,表示 个序列的长度。 ()
接下来 行,每行一个无空格长度为 的字符序列。只包含小写字母 到 。
Output
一个正整数 ,表示有 个公共子序列,对 取模。
Samples
4
aabb
abab
baba
6
Explain
对于唯一的一个样例,有 种子序列,分别是 , 以及一个空序列。
Limitation
1s, 1024KiB for each test case.
2025新生第一次周赛
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 8
- Start at
- 2025-11-8 14:00
- End at
- 2025-11-8 17:00
- Duration
- 3 hour(s)
- Host
- Partic.
- 30