DCP-439: Gang of Vowels Back to All Problems

Beginner Beginners Problems > Ad-hoc


We, everyone, know that vowels in English are **a, e, i, o** and **u**. Let’s call all the vowels in consecutive indexes of a string as a single **Gang of Vowels**. Now, you are given a string consisting only lowercase letters. Count how many **Gang of Vowels** in the given string exists. Input ------ Input starts with an integer **T (1 ≤ T ≤ 20)**, denoting the number of test cases. Each case contains two lines. First line contains an integer **N (1 ≤ N ≤ 1000)** denoting the length of the string. The next line will contain a string consists of **N** lowercase letters. Output ------- For each case, output will be in **Case tc: cnt** format, where **tc** is the test case number and **cnt** is the total number of **Gang of Vowels** in the given string. Sample Input ------------ 2 4 abab 3 aeb Sample Output ------------- Case 1: 2 Case 2: 1 **Note:** string "abab" consists 2 (a, a) Gangs while string "aeb" consist 1 (ae) Gang.


Problem Setter:

Emrul Chowdhury

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

197/417

Solve/Submission

Ranking

# User Language Timing
01 haasib Cpp 0.00s
02 SakibAlamin Cpp14 0.00s
03 ssohan Cpp 0.00s
04 MRITuhin Cpp 0.00s
05 DynamicOvi Cpp 0.00s
06 _dipu Cpp14 0.00s
07 anik_JU Cpp 0.00s
08 prodipdatta7 Cpp14 0.00s
09 Zayed Cpp 0.00s
10 aaman007 Cpp 0.00s
11 _GhOstMan_ Cpp 0.00s
12 cse_nazmul Cpp 0.00s
13 mir003 Cpp 0.00s
14 ainan_ahmed Cpp 0.00s
15 pulak_ict_mbstu Cpp 0.00s
16 Superstorm Cpp 0.00s
17 kissu_pari_na Cpp14 0.00s
18 Pure_Protea Cpp14 0.00s
19 AlaminJust Cpp 0.00s
20 rayhan50001 Cpp 0.00s
21 Frdhsn C 0.00s
22 Silent_Warrior Cpp 0.00s
23 Durbin Cpp14 0.00s
24 bu_hridoy Cpp 0.00s
25 Sagor Cpp 0.00s
26 saiful130104 Cpp 0.00s
27 miltonbhowmick Cpp14 0.00s
28 mahade31 Cpp14 0.00s
29 Riad_IIT7 Cpp14 0.00s
30 tlcakash Cpp 0.00s
31 Foysol_Ahmed Cpp 0.00s
32 astinaam Cpp14 0.00s
33 badhansen123 Cpp 0.00s
34 Rajan_sust Cpp14 0.00s
35 BlueEye Cpp 0.00s
36 Shakil_Mahmud Cpp 0.00s
37 iammarajul Cpp 0.00s
38 epmahfuz Cpp 0.00s
39 Tanmoy Cpp 0.00s
40 gazi93 Cpp 0.00s
41 cage Cpp14 0.00s
42 _c_k_r_ Cpp 0.00s
43 Ramprosad Cpp 0.00s
44 Bisnu039 Cpp 0.00s
45 jayed_al_hasan Cpp 0.00s
46 Anik_Roy Cpp 0.00s
47 Aman_khan Cpp 0.00s
48 iamsadee Cpp 0.00s
49 yasirnabil534 Cpp 0.00s
50 sifat_15 Cpp 0.00s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support