Beispiel #1
0
        public static int P_Wj(string LotteryNumber, int flag)
        {
            int result = 0;
            int num    = CheckSSC_DN.CheckNNumInt(LotteryNumber);
            int num2   = CheckSSC_DN.CheckNNumInt(CheckSSC_DN.AddDnNum(LotteryNumber, flag));

            if (num2 > num)
            {
                if (num2 == 50)
                {
                    result = 6;
                }
                else if (num2 == 40)
                {
                    result = 5;
                }
                else if (num2 == 30)
                {
                    result = 4;
                }
                else if (num2 >= 8 && num2 <= 9)
                {
                    result = 3;
                }
                else if (num2 >= 1 && num2 <= 7)
                {
                    result = 2;
                }
                else
                {
                    result = 0;
                }
            }
            return(result);
        }
        public static int P_Wj(string LotteryNumber, int flag)
        {
            int num1 = 0;
            int num2 = CheckSSC_DN.CheckNNumInt(LotteryNumber);
            int num3 = CheckSSC_DN.CheckNNumInt(CheckSSC_DN.AddDnNum(LotteryNumber, flag));

            if (num3 > num2)
            {
                num1 = num3 != 50 ? (num3 != 40 ? (num3 != 30 ? (num3 < 8 || num3 > 9 ? (num3 < 1 || num3 > 7 ? 0 : 2) : 3) : 4) : 5) : 6;
            }
            return(num1);
        }