All submissions for this problem are available.
Parhi's Girlfriend loves words which contains vowels only. They play a game where Parhi would get a string from her and he needs to find out the length of the longest sub-string containing vowels only. If he fails, then his girlfriend would friend-zone him. Help Parhi to impress his girlfriend and not get friend-zoned! .
Input:First line contains an integer T denoting the number of test cases. Next T lines contain a string S.
Output:Print an integer denoting the length of the longest substring, that is substring consists of only vowels.
- 1 ≤ T ≤ 103
- 1 ≤ |S| ≤ 104
Explanation: Longest Substring of S is aa so the answer is 2.
|Tags||bigo_admin, simple-easy, string, tejaram15|
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, SCALA, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, PERL6, TEXT, SCM chicken, CLOJ, FS|
Fetching successful submissions