Z
-
백준 1074 ZPS 2021. 4. 2. 04:31
www.acmicpc.net/problem/1074 문제를 작은 문제로 쪼갤 수 있음을 알 수 있다. #include #include #include using namespace std; int n; int r, c; int res; void find(int len, int sy, int sx, int startNum) { if (sy == r && sx == c) { res = startNum; return; } int half = len / 2; int y = sy + half; int x = sx + half; if (r = x) { find(half, sy, x, startN..