[알고리즘] 단계적으로 문제 풀기
1. 파리퇴치3 SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 가. 제출 #include #include using namespace std; int n, m; int a[15][15]; int dy[2][4] = {{1, -1, -1, 1}, {1, 0, -1, 0}}; int dx[2][4] = {{1, 1, -1, -1}, {0, 1, 0, -1}}; int sum(int y, int x){ int sum[2]; for(int i = 0; i = n); if(underflow || overflow) continue; sum[i] += a[ny][nx]; } } } return max(sum[0], sum..
2024.01.08