Example #1
0
 private static void updateV()
 {
     auxv = VecOp.Add(auxv, new int[] { 1 });
     for (int i = 0; i < auxv.Length; i++)
     {
         if (auxv[i] == 1)
         {
             v[i] = 3 - v[i];
         }
     }
 }
Example #2
0
        private static void back()
        {
            printStatus();
            // check numberFromV
            while (n.ToString().Length != 15)
            {
                auxv = VecOp.Add(auxv, new int[] { 1 });
                for (int i = 0; i < auxv.Length; i++)
                {
                    if (auxv[i] == 1)
                    {
                        v[i] = 3 - v[i];
                    }
                }
                recalcN();

                nrTestat++;
                if (nrTestat % 32000000 == 0)
                {
                    printStatus();
                    Console.WriteLine((System.DateTime.Now).ToString());
                }
            }
            Success();

            /*
             * if (n == 0)
             * {
             *  updateV();
             * }
             * else
             * {
             *  if(n.ToString().Length != 15)
             *  {
             *      updateV();
             *      back();
             *  }
             *  else
             *  {
             *      Success();
             *  }
             * }*/
        }