Input
int M = 2 , N = 2 , X = 2 ; int [ , ] A = { { 0 , 0 } , { 0 , 0 } } ; int [ , ] B = { { 1 , 2 } , { 0 , 1 } } ; if ( Check ( A , B , M , N , X ) == 1 ) { Console . WriteLine ( " Yes " ) ; } else { Console . WriteLine ( " No " ) ; } } }