SWEA 디저트 카페
-
[SWEA] #2105 _ 디저트 카페Problem Solving/SWEA 2019. 10. 29. 16:40
[디저트 카페] https://swexpertacademy.com/main/code/problem/problemDetail.do SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com start[2]에 시작점의 좌표를 저장해주었고, dessert 배열을 이용하여 먹은 디저트를 체크해주었다. (디저트의 종류는 1부터 시작한다는 점에 유의하자!) 또한, dfs를 이용하여 모든 경우의 수를 고려하여 구현하였다. [ 소스 코드 ] #include #include #include #define MAX 20 using namespace std; int dx[] = { 1, -1, -1, 1 }, dy[] = { 1, 1, -1,..