-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAlan-1840.cs
59 lines (57 loc) · 1.59 KB
/
Alan-1840.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _1840ALAN
{
class Program
{
static void Main(string[] args)
{
int N = int.Parse(Console.ReadLine());
for (int i = 0; i <= N; i++)
{
string m = Console.ReadLine();
int b = 0, r = 0, o = 0, k = 0, e = 0, n = 0, P = 0;
for ( int u = 0; u < m.Length; u++)
{
if (m[u]=='B')
{
b++;
}
else if (m[u]=='R')
{
r++;
}
else if (m[u]=='O')
{
o++;
}
else if (m[u]=='K')
{
k++;
}
else if (m[u]=='E')
{
e++;
}
else if (m[u]=='N')
{
n++;
}
}
P = b;
if (b==P && r==P && o==P && k==P && e==P && n==P)
{
Console.WriteLine("No Secure");
}
else
{
Console.WriteLine("Secure");
}
}
Console.ReadKey();
}
}
}