s
A be a set of positions in the string. Let's call it pretty
- A
- A(i.e. there is no suchjthats[j] is an uppercase letter, anda1 <j<a2 for somea1 anda2 fromA).
pretty
Input
n (1 ≤ n ≤ 200) — length of string s.
s
Output
pretty set of positions for string s.
Examples
input
11 aaaaBaabAbA
output
2
input
12 zACaAbbaazzC
output
3
input
3 ABC
output
0
题目大概:
求连续的小写子母中,种类最多的是多少种。
代码: