Submission #19558094


Source Code Expand

Copy
static void Main(string[] arg
{
var w = Console.ReadLine().Split(' ');
int n = int.Parse(w[0]);
int x = int.Parse(w[1]);
string s = Console.ReadLine();
for (int i=0; i<n; i++)
{
  if (s[i] == 'o')
    x++;
  else if (x>0)
    x--;
}
Console.WriteLine(x);
}

Submission Info

Submission Time
Task A - Determinant
User wads
Language C# (.NET Core 3.1.201)
Score 0
Code Size 270 Byte
Status CE

Compile Error

Program.cs(1,30): error CS1026: ) expected [/imojudge/csharp/csharp.csproj]