「一本通 2.1 练习 1」Power Strings
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.
Description
Original source: POJ 2406
Given several strings with lengths , determine the maximum number of identical substrings each string can be formed by concatenating. For example, ababab can be formed by concatenating ab substrings.
Input Format
Input consists of several lines, each containing a string. Specifically, the string may be . (a single period), which indicates the end of input.
Sample 1
abcd
aaaa
ababab
.
1
4
3
Constraints and Hints
String length .
20251123 D班作业(7)
- Status
- Done
- Problem
- 2
- Open Since
- 2025-11-24 0:00
- Deadline
- 2025-12-1 23:59
- Extension
- 24 hour(s)