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 ) != 0 ) { System . out . println ( " Yes " ) ; } else { System . out . println ( " No " ) ; } } }