ZS Coder love maze your job create play a maze consist nm room room arrange n row number start 1 m column number leave right start 1 the room ith row jth column denote ij a player start room 11 want reach room nmeach room door one maze border wall adjacent wall room share door some door lock mean impossible pass door for example door connect ij ij1 lock can not ij ij1 also travel room downwards room ij room i1j rightward room ij room ij1 provide corresponding door lock this image represent maze door lock the colored arrow denote possible path red cross denote lock door ZS Coder consider maze difficulty x exactly x way travel room 11 room nm two way consider different differ sequence room visit travellingyour task create maze difficulty exactly equal t in addition ZS Coder do not like large maze size maze number lock door limit sound simple right