Esempio n. 1
0
        public static void Task()
        {
            Twister t = new Twister();

            Console.WriteLine("[Task 1]   Multiplying the first 2 transformed members of the " +
                              "chain gives us " + t.FirstTwoMultiplied(Core.FilteredInput) + ".\n");
        }
Esempio n. 2
0
        public static void Task()
        {
            Twister t           = new Twister();
            string  secondInput = "";

            foreach (char c in Core.Input)
            {
                secondInput += (byte)c + ",";
            }

            secondInput += "17,31,73,47,23";

            var si       = new Regex(@",").Split(secondInput);
            var NewInput = new int[si.Length];

            for (int i = 0; i < NewInput.Length; ++i)
            {
                NewInput[i] = int.Parse(si[i]);
            }

            Console.WriteLine("[Task 2]   The dense hash of input.txt is " + ToHash(t.HashSequence(NewInput)) + ".");
        }