主页 讨论版 问题 名次 状态 统计

请自觉遵守比赛规则,违者严惩,不接受求情!

Glory And String-j9国际集团直营

问题 A: Glory And String

时间限制: 1000 ms  内存限制: 128 MB
提交: 103  解决: 49
[提交][状态][讨论版]

题目描述

输入

First line is the number of strings T, the T lines follow, each line describe a string Glory needs to operate.The total length of strings won't exceed 5,000 and consist of only lower-case characters.The length of each string won't exceed 2,000.

输出

样例输入

3

aaaab

abcde

abb

样例输出

1
4
1

提示

[提交][状态][讨论版]