We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The first line contains four integers N, M, K, Q separated by a single space.
N is the number of rows
M is the number of columns
K is the number of seconds it takes to cheat
Q provides the information about the key positions in the game
Q={ EXi, EYi, SXi, SYi, TXi, TYi }
If A = M by N matrix, a position is movable if A(i,j) = 1 and fixed if A(i,j)=0.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Huarongdao
You are viewing a single comment's thread. Return to all comments →
The first line contains four integers N, M, K, Q separated by a single space. N is the number of rows M is the number of columns K is the number of seconds it takes to cheat Q provides the information about the key positions in the game Q={ EXi, EYi, SXi, SYi, TXi, TYi } If A = M by N matrix, a position is movable if A(i,j) = 1 and fixed if A(i,j)=0.