dhedaa   7년 전

어디가 잘못된건지 잘 모르겠어요 ㅠㅠ

nisroeld99   7년 전

int sz=q1.size();
            for(int z=0; z<sz; z++) {
                int w = q1.poll();
                int v = q2.poll(); 
                if(w == a-1 && v == b-1){
                    System.out.println(cnt);
                    return;
                }


이부분이 이해가 안가네요


nisroeld99   7년 전

        ii temp = q.front();
        int now_y = temp.first;
        int now_x = temp.second;
        q.pop();


같은 부분은 for 문없이 썼습니다


아마 이부분에서 런타임나는거같습니다 

댓글을 작성하려면 로그인해야 합니다.