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

        for (int c = 0; c < numberOfCases; c++)
        {
            var line = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);

            Console.WriteLine(
                NSTEPS.Solve(line[0], line[1])?.ToString() ?? "No Number");
        }
    }
Example #2
0
    private static void Main()
    {
        int remainingTestCases = int.Parse(Console.ReadLine());

        while (remainingTestCases-- > 0)
        {
            int[] line = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);

            Console.WriteLine(
                NSTEPS.Solve(line[0], line[1]));
        }
    }