Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,23 +1,23 @@
|
|||
// simple solution
|
||||
string input = Console.ReadLine();
|
||||
if (input.Length % 2 != 0)
|
||||
{
|
||||
Console.WriteLine("Not Okay");
|
||||
return;
|
||||
}
|
||||
for (int i = 0; i < input.Length; i++)
|
||||
{
|
||||
if (i < input.Length - 1)
|
||||
{
|
||||
if (input[i] == '[' && input[i + 1] == ']')
|
||||
{
|
||||
input = input.Remove(i, 2);
|
||||
i = -1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if (input.Length == 0)
|
||||
Console.WriteLine("Okay");
|
||||
else
|
||||
Console.WriteLine("Not Okay");
|
||||
if (input.Length % 2 != 0)
|
||||
{
|
||||
Console.WriteLine("Not Okay");
|
||||
return;
|
||||
}
|
||||
for (int i = 0; i < input.Length; i++)
|
||||
{
|
||||
if (i < input.Length - 1)
|
||||
{
|
||||
if (input[i] == '[' && input[i + 1] == ']')
|
||||
{
|
||||
input = input.Remove(i, 2);
|
||||
i = -1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if (input.Length == 0)
|
||||
Console.WriteLine("Okay");
|
||||
else
|
||||
Console.WriteLine("Not Okay");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue