public static void _Main(String[] args) { EvenRoute evenRoute = new EvenRoute(); String input = Console.ReadLine(); do { var inputParts = input.Split('|'); var x = inputParts[0].Split(',').ToList().Select(int.Parse).ToArray(); var y = inputParts[1].Split(',').ToList().Select(int.Parse).ToArray(); int wantedParity = int.Parse(inputParts[2]); Console.WriteLine(evenRoute.IsItPossible(x, y, wantedParity)); input = Console.ReadLine(); } while (input != "-1"); }
public static void Main(String[] args) { EvenRoute evenRoute = new EvenRoute(); String input = Console.ReadLine(); do { var inputParts = input.Split('|'); var x = inputParts[0].Split(',').ToList().Select(ix => int.Parse(ix)).ToArray(); var y = inputParts[1].Split(',').ToList().Select(iy => int.Parse(iy)).ToArray(); int wantedParity = int.Parse(inputParts[2]); Console.WriteLine(evenRoute.IsItPossible(x, y, wantedParity)); input = Console.ReadLine(); } while (input != "-1"); }