using System; using System.Collections.Generic; using System.IO; using static D13._1.Program; using D13._1; namespace D13._2 { class Program { static void Main(string[] args) { if (args.Length < 1) throw new ArgumentException(); if (File.Exists(args[0]) == false) throw new FileNotFoundException(); var persons = new HashSet(); var preferences = new Dictionary<(string, string), int>(); ParseFile(args[0], persons, preferences); var me = new Person("Bastien"); foreach (var p in persons) { preferences.Add((me.Name, p.Name), 0); preferences.Add((p.Name, me.Name), 0); } persons.Add(me); int best = SearchBestTablePlan(persons, preferences); Console.WriteLine($"The answer is : {best}"); } } }