Пример #1
0
        //609 - too low
        public static void Day16a()
        {
            List <Set>            sets    = ParseSets();
            Dictionary <Set, int> returns = new Dictionary <Set, int>();
            OpCodes oc = new OpCodes();

            foreach (Set set in sets)
            {
                int i = oc.TestAll(set.Pre, set.Instr, set.Post);

                returns.Add(set, i);
            }

            MessageBox.Show("There were " + returns.Where(w => w.Value >= 3).Count() + " instructions that behave like three or more OpCodes.");
        }