백준_14620_꽃길
으아아아아아ㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏ 왜 틀린지 모르겠음 질문글들도 없음,,,,,,,, 쉬운 문제 같은데ㅔㅔㅔㅔㅔㅔㅔㅔ 완전탐색 Backtracking으로 풀었음 일단 틀린코드라도 허허,, 나중에 수정해야지 #include #include using namespace std; vector arr; vector visited_map; int n; // 사이즈 // 좌표이동 - 상, 하, 좌, 우, 현 int ax[5] = { 0, 0, -1, +1, 0 }; int ay[5] = { +1, -1, 0, 0, 0 }; bool visited_all(int _y, int _x) { if ((_xn - 2) || (_yn - 2)) { return false; } if (visited_map[_y][_x] == 1)..
2018. 10. 8.