# DCP-584: G-String Back to All Problems

Beginner Beginners Problems > Implementation

A string is considered **G-String** , If the string consists of **full lowercase vowels character** or string consists of **full lowercase consonants**. <br> For example:<br> > "**aei**" , "**btp**" , "**qwrty**" are **G-String**.<br> But > "**Aue**" , "**BCD**", "**AKI**" , "**^&,B**" are not. You are given a string **S** , in one operation you can convert any character of the string to lowercase vowel or lowercase consonant. <br> Calculate minimum number of operations needs to convert **S** to **G-String**. Input: ------ Input starts with an integer **T (1<=100)**, denoting the number of test cases.<br> Each case contains a string **S, 0< |S| <=100 (Length of the string less than 101 and greater than 0)**. Output: ------- For each case of input print the minimum number of operations required to convert **S** to **G-String**. Sample Input ------------ 2 ae.i ABCD Sample Output ------------- 1 4 Note ------------- Vowels are {**'a' , 'e' , 'i' , 'o' , 'u'**} . **S** contains *letters , digits, and symbols except 'quotation' , "double quotation" , /slash , \backslash*

### Problem Limits

 Language Time Limit (seconds) C 1.00 C++ 1.00 C++14 1.00 C# 2.00 Go 2.00 Java 2.00 JavaScript 2.00 Objective-C 2.00 Perl 2.00 PHP 2.00 Python 2.00 Python3 2.00 Ruby 2.00 VB.Net 2.00

# 125/301

Solve/Submission

### Ranking

# User Language Timing
01 The_Viper Cpp 0.00s
02 aaman007 Cpp 0.00s
03 Ramprosad Cpp 0.00s
04 cage Cpp14 0.00s
05 KM_Muntasir Cpp14 0.00s
06 fncse Cpp 0.00s
07 Roki_Moulik_12_EWU Cpp14 0.00s
08 pulak_ict_mbstu Cpp14 0.00s
09 Ataur Cpp 0.00s
10 siam009 Cpp14 0.00s
11 mash02 Cpp 0.00s
12 kashem1993 Cpp 0.00s
13 muradhossen Cpp 0.00s
14 sm119 Cpp 0.00s
15 Bisnu039 Cpp 0.00s
16 sourav_malo Cpp 0.00s
17 Faizul_BU Cpp 0.00s
18 kabbya Cpp 0.00s
19 fadilcse5bu Cpp 0.00s
20 Mallika_Dey C 0.00s
21 niloypaul C 0.00s
22 iammarajul Cpp 0.00s
23 TarikulCSE Cpp 0.00s
24 31_ipn Cpp 0.00s
25 sazzad786 Cpp 0.00s
26 morol Cpp 0.00s
27 rhssinister53 Cpp 0.00s
28 JubayerSohel Cpp 0.00s
29 rhprince06 Cpp 0.00s
30 m3h3d1 Cpp 0.00s
31 moniiit Cpp 0.00s
32 Sadi9 Cpp14 0.00s
33 wajiul Cpp 0.00s
34 Asif_Watson Cpp 0.00s
35 Whit3space Cpp 0.00s
36 Big_Pappa Cpp 0.00s
37 avoid_errors Cpp 0.00s
38 rakibislam1996 Cpp14 0.00s
39 amantu_bu Cpp 0.00s
40 HunterBoy Cpp14 0.00s
41 nill98 Cpp14 0.00s
42 IndrojitMondal Cpp 0.00s
43 Rama_Kundu Cpp 0.00s
44 atrahman2012 Cpp 0.00s
45 nafischonchol Cpp 0.00s
46 Arif_Shariar Cpp 0.00s
47 ismail5g Cpp 0.00s
48 Riad_IIT7 Cpp 0.00s
49 Baby_programmer C 0.00s
50 SAIF_IIT8_JU Cpp 0.00s
Feedback