백준 1520번 C++
#include#include#includeusing namespace std; int m, n;int arr[501][501];int ans[501][501]; bool rangecheck(int x, int y) {return x = 0 && y = 0;} int calway(int x,int y) {pair move[4] = { {1,0},{-1,0},{0,-1},{0,1} }; if (x == m-1 && y == n-1)return 1;int &answer = ans[x][y];if (answer != -1)return answer;answer = 0;for (int i = 0; i < 4; i++) {if (rangecheck((x + move[i].firs..
2019. 1. 23.