시작 row , 시작 col

도착 row, 도착 col 이런거 나는 query에서 다 뽑아내서 했거든


for(int i=0;i< query.length;i++)
{
String tempt = "";
for(int j=0;j<query[i].length();j++)
{
if(query[i].charAt(j) != ' ')
tempt += query[i].charAt(j);
}
queries[i] = tempt;

startRow = (int)tempt.charAt(0) -'0' -1;
startCol = (int)tempt.charAt(1) - '0' -1;
endRow = (int)tempt.charAt(2) -'0' -1;
endCol = (int)tempt.charAt(3) -'0' -1 ;
route = tempt.substring(4);
check = new boolean[maze.length][maze[0].length()];

check[startRow][startCol]= true;....

}


너넨 query에서 조건 안뽑아내고 그냥했냐? 아님 뭐 어떻게 조건을 따로 뽑아내고 푸냐??

조건을 따로 뽑아내니까 뽑는대만 시간이 존나걸리는데 팁같은것좀 줄 수 없을까??