示例#1
0
文件: 6.cs 项目: qifanyyy/CLCDSA
    public static void Main()
    {
        CM = new long[41, 41];
        for (int i = 0; i <= 40; i++)
        {
            for (int j = 0; j <= i; j++)
            {
                if (i == j)
                {
                    CM[i, j] = 1;
                }
                else if (j == 0)
                {
                    CM[i, j] = 1;
                }
                else
                {
                    CM[i, j] = CM[i - 1, j] + CM[i - 1, j - 1];
                }
            }
        }
        //  Console.WriteLine(CM[4, 2]);
        GG g = new GG();

        g.processing();
    }
示例#2
0
    public static void Main()
    {
        GG g = new GG();

        g.processing();
    }