Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- aws #docker
- 17298
- vite
- 3015
- react
- 9251
- 백준 #5073
- 카카오테크 부트캠프 클라우드 in 제주
- JS
- 백준 #1157
- Web
- kubernetes #k8s
- fe
- aws #docker #mysql #heidisql
- 백준 #9655
- 30504
- 백준 #7568
- 백준 #2292
- 백준
- 2493
- ErrorBoundary
- 구름톤유니브
- Context API
- C++
- aws #kubernetes
- javascipt
- 백준 #23971
- frontend
- 11003
- aws #docker #tomcat
Archives
- Today
- Total
목록1074 (1)
gmlwlsl 님의 블로그

문제 풀이아래 그림처럼 생각해서 재귀로 풀면 된다.n=3, r=7, c=7인 경우의 그림이다. (빨간 체크가 내가 가야 하는 곳)재귀 함수를 z(int n, int r, int c)라고 가정,재귀가 돌아가는 과정을 식으로 나타내면 아래와 같다. z(3, 7, 7)= 3*4*4 + z(2, 3, 3)= 48 + (3*2*2 + z(1, 1, 1))= 48 + (12 + (3*1*1 + z(0, 0, 0)))= 48 + 12 + 3= 63 답안#include using namespace std;int z(int n, int r, int c) { if (n == 0) { return 0; } int half = 1 = half) { return half*half + z..
백준
2025. 2. 6. 10:36