-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproblem1.java
49 lines (47 loc) · 857 Bytes
/
problem1.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
class problem1
{
public static void main(String[] args)throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
for(int j = 0;j<n;j++)
{
int count = 0;
String s = br.readLine();
char[] str = s.toCharArray();
for(int i = 4;i<str.length-4;i++)
{
if(str[i]=='a')
{}
else
{
if(str[i]=='e')
{}
else
{
if(str[i]=='i')
{}
else
{
if(str[i]=='o')
{}
else
{
if(str[i]=='u')
{}
else
{
count++;
}
}
}
}
}
}
System.out.println((count+4)+"/"+str.length);
}
}
}