Example #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            BigInt b1 = dividend;
            BigInt b2 = divisor;
            BigInt b3 = b1 / b2;

            if (b3 > 2147483647 || b3 < -2147483648)
            {
                b3 = -2147483648;
            }
            return(Convert.ToInt32(b3.ToString()));

            BigInt bigInt1 = 1;

            //给以解决LeetCode上大量数字类问题
            for (int i = 1; i < 10000; i++)
            {
                bigInt1 *= 2;
            }
        }