-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjuampy1996(1840).java
More file actions
62 lines (54 loc) · 980 Bytes
/
juampy1996(1840).java
File metadata and controls
62 lines (54 loc) · 980 Bytes
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
50
51
52
53
54
55
56
57
58
59
60
61
62
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner entrada= new Scanner(System.in);
int n= entrada.nextInt();
while (n>0)
{
String a = entrada.next();
char[] vectorCaracteres = new char[a.length()];
vectorCaracteres= a.toCharArray();
int c1=0;
int c2=0;
int c3=0;
int c4=0;
int c5=0;
int c6=0;
for (int i = 0; i < vectorCaracteres.length; i++)
{
if (vectorCaracteres[i]=='B')
{
c1++;
}
if (vectorCaracteres[i]=='R')
{
c2++;
}
if (vectorCaracteres[i]=='O')
{
c3++;
}
if (vectorCaracteres[i]=='K')
{
c4++;
}
if (vectorCaracteres[i]=='E')
{
c5++;
}
if (vectorCaracteres[i]=='N')
{
c6++;
}
}
if (c1==c2&&c2==c3&&c3==c4&&c4==c5&&c5==c6)
{
System.out.println("No Secure");
}
else {
System.out.println("Secure");
}
n --;
}
}
}