~/algor $ cat contests/round-9/J
J. Longest substring without repeats
Problem J
ICPC rules
1000 ms
128 MB
A string of lowercase Latin letters is given. Find the length of the longest substring of consecutive characters in which no letter repeats.
Input
One line containing the string .
Output
One integer.
Note
consists of lowercase Latin letters (a–z) only
Examples
Input #1
abcabcbb
Output #1
3
Input #2
aaaa
Output #2
1