poj 2406 Power Strings //DC3 后缀数组

 

Power Strings
Time Limit: 3000MS Memory Limit: 65536K
Total Submissions: 16624 Accepted: 6923

Description

Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concatenation as multiplication, exponentiation by a non-negative integer is defined in the normal way: a^0 = "" (the empty string) and a^(n+1) = a*(a^n).

Input

Each test case is a line of input representing s, a string of printable characters. The length of s will be at least 1 and will not exceed 1 million characters. A line containing a period follows the last test case.

Output

For each s you should print the largest n such that s = a^n for some string a.

Sample Input

abcd
aaaa
ababab
.

Sample Output

1
4
3

Hint

This problem has huge input, use scanf instead of cin to avoid time limit exceed.

Source

 

 

包含 英超(Premier League)、西甲(La Liga)、德甲(Bundesliga)、意甲(Serie A)和法甲(Ligue 1) 所有球员的完整统计数据,是研究球员表现、位置分析、比赛效率评估和构建预测模型的理想资源。 覆盖 2024–2025 赛季全部球员数据 包含进球、助攻、预期进球(xG)、传球推进等高级指标 支持按位置、年龄、国籍、出场时间等维度进行分析 可用于球员比较、球队策略制定、教学项目或机器学习建模 该数据集非常适合用于: 球员表现分析与排名 构建球员价值预测模型 探索不同位置球员的进攻贡献差异 教学项目、课程作业、Kaggle 风格练习 数据可视化:热图、散点图、雷达图等 字段说明(Features & Columns) 基础信息字段(Player Info) 字段名 类型 描述 Player string 球员姓名 Nation string 国籍(格式为国家代码或国家名称) Pos string 位置(Forward, Midfielder, Defender, Goalkeeper) Age integer 年龄 比赛参与字段(Playing Time) 字段名 类型 描述 MP integer 总出场次数(Matches Played) Starts integer 首发次数 Min integer 总上场分钟数 90s float 相当于多少个完整的90分钟比赛(如 30场比赛 = 30*90=2700 分钟 = 30.0 90s) 进攻表现字段(Offensive Stats) 字段名 类型 描述 Gls integer 总进球数(Goals) Ast integer 总助攻数(Assists) G+A integer 总进球+助攻数 G-PK integer 不包括
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值