private static int CountV(int x, Eris eris) { var c = 0; for (int i = 0; i < N; i++) { if (eris.Get(x, i)) { c++; } } return(c); }
private static int CountH(int y, Eris eris) { var c = 0; for (int i = 0; i < N; i++) { if (eris.Get(i, y)) { c++; } } return(c); }