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 Setter:

Ashini Singha

Please login to submit solution to this problem.

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

Problem Stats

122/294

Solve/Submission

Ranking

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

Your feedback is our precious!



Or call +88 02 9853138 for support