Example #1
0
    private static void Main()
    {
        var numberOfCases = int.Parse(Console.ReadLine());

        for (int c = 0; c < numberOfCases; c++)
        {
            Console.ReadLine(); // Consumes blank line

            Console.WriteLine(
                ABSYS.Solve(Console.ReadLine()));
        }
    }
Example #2
0
    private static void Main()
    {
        int remainingTestCases = int.Parse(Console.ReadLine());

        while (remainingTestCases-- > 0)
        {
            Console.ReadLine();

            Console.WriteLine(
                ABSYS.Solve(Console.ReadLine()));
        }
    }