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

198/422

Solve/Submission

Ranking

# User Language Timing
01 ashraf_neo Cpp 0.00s
02 cse_nazmul Cpp 0.00s
03 habib_rahman Cpp14 0.00s
04 nuhu_iu Cpp 0.00s
05 Mahim007 Cpp14 0.00s
06 ssavi Cpp 0.00s
07 badhansen123 Cpp 0.00s
08 astinaam Cpp14 0.00s
09 Nazmul_WUB Cpp 0.00s
10 mbstu_nitai Cpp 0.00s
11 Trusted_Frustrated Cpp 0.00s
12 oasiscse Cpp 0.00s
13 Jisancse Cpp14 0.00s
14 emrul Cpp 0.00s
15 Foysol_Ahmed Cpp 0.00s
16 tariqiitju Cpp 0.00s
17 Tanmoy Cpp 0.00s
18 Superstorm Cpp 0.00s
19 Nur_Alam39 Cpp 0.00s
20 cage Cpp14 0.00s
21 rohijulislam Cpp 0.00s
22 t0whid Cpp 0.00s
23 Pure_Protea Cpp14 0.00s
24 robin_aust Cpp 0.00s
25 gazi93 Cpp 0.00s
26 lazyfahim Cpp 0.00s
27 saiful130104 Cpp 0.00s
28 Ishrak Cpp 0.00s
29 MRITuhin Cpp 0.00s
30 Zayed Cpp 0.00s
31 Durbin Cpp14 0.00s
32 Shakil_Mahmud Cpp 0.00s
33 haasib Cpp 0.00s
34 prodipdatta7 Cpp14 0.00s
35 Dragon_Curve Cpp 0.00s
36 Aman_khan Cpp 0.00s
37 rayhan50001 Cpp 0.00s
38 wizard Cpp 0.00s
39 Logic_Hunter Cpp14 0.00s
40 shamim_ahmed Cpp 0.00s
41 iamsadee Cpp 0.00s
42 pulak_ict_mbstu Cpp 0.00s
43 yasirnabil534 Cpp 0.00s
44 Sagor Cpp 0.00s
45 arafat_hasan Cpp14 0.00s
46 Anubis Cpp 0.00s
47 SaikatS Cpp 0.00s
48 sohag_AUST Cpp 0.00s
49 afzalul Cpp 0.00s
50 the_badcoder Cpp 0.00s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support