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(); }
public static void Main() { GG g = new GG(); g.processing(); }