[C언어] 2210. 숫자판 점프
visit 처리 안 해주는 백트랙킹~ 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758#include #include int dx[] = { 1,-1,0,0 };int dy[] = { 0,0,-1,1 };int map[10][10], count;int arr[1000000];int J, H; void DFS(int y, int x, int num, int d){ if (d == 5) { if (arr[num] == 0) { arr[num] = 1; count++; } return; } for (int i = 0; i