-->
当前位置:首页 > 题库

PROGRAMMING:Awei plays the guitar

Luz5年前 (2021-05-10)题库370
As we all know, awei likes playing guitar very much, and he thinks symmetrical sound is a beautiful sound.
![ WP2J$OJ_ D@P6 `G2NL}`JPY4.png](~/32a7fb0c-a141-41c0-9d7a-47eac37afcba.png)
[(guitar video link)]( https://pan.baidu.com/s/1RQEUsbiHr1kQryk6Yz7gKQ )
Extraction code: g3fv
We can assume that awei's guitar can only make 26 kinds of sounds, and at the same time, it can only make one kind of sound. Now awei has played guitar for a long time, and he wants to know the length of the longest beautiful sound.
###Input format:
The first line is a positive integer $$n $, which indicates the time when awei plays guitar
In the second line, $$n $$is a small letter, representing the 26 kinds of sounds made by awei
###Output format:
Output the length of awei's longest beautiful sound in one line
###Input example:
```in
six
abcbcb
```
###Output example:
```out
five
```
### tips:
BCB is the longest beautiful sound







answer:If there is no answer, please comment