Пример #1
0
        public void LessThan6NumbersThrowsError()
        {
            var p       = new ConstantNumberProvider();
            var factory = new ProblemFactory(p);

            Assert.Throws <ArgumentException>(() =>
            {
                var problem = factory.Create();
            });
        }
Пример #2
0
        static void Main(string[] args)
        {
            Console.WriteLine(
                ProblemFactory.Create(ProblemId.Day25A)
                .SendToClipboard()
                .AppendTime()
                .Solve());

            Console.ReadKey();
        }
Пример #3
0
        static void Main()
        {
            /** /
            *  ProblemFactory.Create<Day1A>()
            *   .SendToClipboard()
            *   .AppendTime()
            *   .Solve()
            *   .ToConsole("Day 1A");
            *
            *  ProblemFactory.Create<Day1B>()
            *   .SendToClipboard()
            *   .AppendTime()
            *   .Solve()
            *   .ToConsole("Day 1B");
            *
            *  ProblemFactory.Create<Day2A>()
            *   .SendToClipboard()
            *   .AppendTime()
            *   .Solve()
            *   .ToConsole("Day 2A");
            *
            *  ProblemFactory.Create<Day2B>()
            *   .SendToClipboard()
            *   .AppendTime()
            *   .Solve()
            *   .ToConsole("Day 2B");
            *
            *  ProblemFactory.Create<Day3A>()
            *   .SendToClipboard()
            *   .AppendTime()
            *   .Solve()
            *   .ToConsole("Day 3A");
            *
            *  ProblemFactory.Create<Day3B>()
            *   .SendToClipboard()
            *   .AppendTime()
            *   .Solve()
            *   .ToConsole("Day 3B");
            *
            *  ProblemFactory.Create<Day4A>()
            *   .SendToClipboard()
            *   .AppendTime()
            *   .Solve()
            *   .ToConsole("Day 4A");
            *
            *  ProblemFactory.Create<Day4B>()
            *   .SendToClipboard()
            *   .AppendTime()
            *   .Solve()
            *   .ToConsole("Day 4B");
            *
            *  ProblemFactory.Create<Day5A>()
            *   .SendToClipboard()
            *   .AppendTime()
            *   .Solve()
            *   .ToConsole("Day 5A");
            *
            *  ProblemFactory.Create<Day5B>()
            *   .SendToClipboard()
            *   .AppendTime()
            *   .Solve()
            *   .ToConsole("Day 5B");
            *
            *  ProblemFactory.Create<Day6A>()
            *   .SendToClipboard()
            *   .AppendTime()
            *   .Solve()
            *   .ToConsole("Day 6A");
            *
            *  ProblemFactory.Create<Day6B>()
            *   .SendToClipboard()
            *   .AppendTime()
            *   .Solve()
            *   .ToConsole("Day 6B");
            *
            *
            *  ProblemFactory.Create<Day7A>()
            *   .SendToClipboard()
            *   .AppendTime()
            *   .Solve()
            *   .ToConsole("Day 7A");
            *
            *  ProblemFactory.Create<Day7B>()
            *  .SendToClipboard()
            *  .AppendTime()
            *  .Solve()
            *  .ToConsole("Day 7B");
            *
            *  ProblemFactory.Create<Day8A>()
            *   .SendToClipboard()
            *   .AppendTime()
            *   .Solve()
            *   .ToConsole("Day 8A");
            *
            *  ProblemFactory.Create<Day8B>()
            *   .SendToClipboard()
            *   .AppendTime()
            *   .Solve()
            *   .ToConsole("Day 8B");
            *
            *
            *  ProblemFactory.Create<Day9A>()
            *  .SendToClipboard()
            *  .AppendTime()
            *  .Solve()
            *  .ToConsole("Day 9A");
            *
            *  ProblemFactory.Create<Day9B>()
            *   .SendToClipboard()
            *   .AppendTime()
            *   .Solve()
            *   .ToConsole("Day 9B");
            *
            *  ProblemFactory.Create<Day10A>()
            *  .SendToClipboard()
            *  .AppendTime()
            *  .Solve()
            *  .ToConsole("Day 10A");
            *
            *  ProblemFactory.Create<Day10B>()
            *   .SendToClipboard()
            *   .AppendTime()
            *   .Solve()
            *   .ToConsole("Day 10B");
            *
            *  ProblemFactory.Create<Day11A>()
            *   .SendToClipboard()
            *   .AppendTime()
            *   .Solve()
            *   .ToConsole("Day 11A");
            *
            *  ProblemFactory.Create<Day11B>()
            *   .SendToClipboard()
            *   .AppendTime()
            *   .Solve()
            *   .ToConsole("Day 11B");
            *  // */

            //ProblemFactory.Create<Day12A>()
            //    .SendToClipboard()
            //    .AppendTime()
            //    .Solve()
            //    .ToConsole("Day 12A");

            //ProblemFactory.Create<Day12B>()
            //    .SendToClipboard()
            //    .AppendTime()
            //    .Solve()
            //    .ToConsole("Day 12B");

            ProblemFactory.Create <Day13A>()
            .SendToClipboard()
            .AppendTime()
            .Solve()
            .ToConsole("Day 13A");

            ProblemFactory.Create <Day13B>()
            .SendToClipboard()
            .AppendTime()
            .Solve()
            .ToConsole("Day 13B");

            /** /
            *
            *
            *
            *  ProblemFactory.Create<Day14A>()
            *  .SendToClipboard()
            *  .AppendTime()
            *  .Solve()
            *  .ToConsole("Day 14A");
            *
            *  ProblemFactory.Create<Day14B>()
            *  .SendToClipboard()
            *  .AppendTime()
            *  .Solve()
            *  .ToConsole("Day 14B");
            *
            *  ProblemFactory.Create<Day16A>()
            *  .SendToClipboard()
            *  .AppendTime()
            *  .Solve()
            *  .ToConsole("Day 16A");
            *
            *  ProblemFactory.Create<Day16B>()
            *  .SendToClipboard()
            *  .AppendTime()
            *  .Solve()
            *  .ToConsole("Day 16B");
            *
            *  ProblemFactory.Create<Day17A>()
            *  .SendToClipboard()
            *  .AppendTime()
            *  .Solve()
            *  .ToConsole("Day 17A");
            *
            *  ProblemFactory.Create<Day17B>()
            *  .SendToClipboard()
            *  .AppendTime()
            *  .Solve()
            *  .ToConsole("Day 17B");
            *  // */

            Console.ReadKey();
        }