SWEA 1210
-
[SWEA] #1210 _ Ladder1Problem Solving/SWEA 2019. 8. 28. 22:01
[Ladder1] https://swexpertacademy.com/main/code/problem/problemDetail.do SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 어쨋든 도착지는 한 군데이다. 따라서, 도착지부터 거꾸로 조건에 맞는 방법으로 올라가서 출발지를 찾으면 된다. [ 소스 코드 ] #include #include #define MAX 100 using namespace std; int dx[] = { -1, 1, 0 }, dy[] = { 0, 0, -1 }; int map[MAX + 1][MAX + 1]; int solve(int y, int x); int main() { int tes..