Input
var M = 2 , N = 2 , X = 2 ; var A = [ [ 0 , 0 ] , [ 0 , 0 ] ] ; var B = [ [ 1 , 2 ] , [ 0 , 1 ] ] ; if ( Check ( A , B , M , N , X ) ) { document . write ( " " + " " ) ; } else { document . write ( " " + " " ) ; }