using D21._1; using System; using System.IO; namespace D22._2 { class Program : D21._1.Program { static void Main(string[] args) { if (args.Length < 1) throw new ArgumentException(); if (File.Exists(args[0]) == false) throw new FileNotFoundException(); var spellBook = BuildSpellBook(); MonsterBoss boss = ParseFile(args); Difficulty = EnumDifficulty.Hard; int best = int.MaxValue; TrySpellSequence(spellBook, boss, ref best); Console.WriteLine($"Best spell sequence costs {best} MP"); } } }