Program.cs 634 B

123456789101112131415161718192021222324252627
  1. using D21._1;
  2. using System;
  3. using System.IO;
  4. namespace D22._2
  5. {
  6. class Program : D21._1.Program
  7. {
  8. static void Main(string[] args)
  9. {
  10. if (args.Length < 1) throw new ArgumentException();
  11. if (File.Exists(args[0]) == false) throw new FileNotFoundException();
  12. var spellBook = BuildSpellBook();
  13. MonsterBoss boss = ParseFile(args);
  14. Difficulty = EnumDifficulty.Hard;
  15. int best = int.MaxValue;
  16. TrySpellSequence(spellBook, boss, ref best);
  17. Console.WriteLine($"Best spell sequence costs {best} MP");
  18. }
  19. }
  20. }