static void Step8731() { Console.WriteLine(); Console.WriteLine("8731"); String[] in8731 = { "501 501", "0 0 1001", "400 400 200 1", "190 190 190 190 190 190 190 190 190 190 190", "130 130 130 130 130 130 130 130 130 130 130", "129 179 89 155 188 163 94 66" }; int[] out8731 = { 2, 3, 4, 6, 8, 8 }; for (int i = 0; i < in8731.Length; i++) { int result = Lab06.task8731(in8731[i]); Console.WriteLine("{0} ({1})", result, out8731[i]); } }