示例#1
0
 public void Scramble(string[] strOperations)
 {
     password = String.Copy(seed);
     foreach (var op in strOperations)
     {
         password = OperationParser.Parse(op).Execute(password);
     }
 }
示例#2
0
        static void Pt2()
        {
            var input    = "fbgdceah";
            var allLines = File.ReadAllLines("input.txt");

            for (int i = allLines.Length - 1; i >= 0; i--)
            {
                Console.WriteLine("#" + i + ":" + allLines[i]);
                input = OperationParser.Parse(allLines[i], true).Execute(input);
            }
            Console.WriteLine(input);
        }