Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[week-09] 14500, 1992 #55

Merged
merged 1 commit into from
Mar 22, 2024
Merged

[week-09] 14500, 1992 #55

merged 1 commit into from
Mar 22, 2024

Conversation

wonkyDD
Copy link
Contributor

@wonkyDD wonkyDD commented Mar 19, 2024

dfs(y, x, len/2);
dfs(y, x+len/2, len/2);
dfs(y+len/2, x, len/2);
dfs(y+len/2, x+len/2, len/2);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

            sb.append("(");
            solve(sy, sx, sy+n/2-1, sx+n/2-1);
            solve(sy, sx+n/2, sy+n/2-1, ex);
            solve(sy+n/2, sx, ey, sx+n/2-1);
            solve(sy+n/2, sx+n/2, ey, ex);
            sb.append(")");

y, x의 시작 지점과 탐색범위(len)을 넘기는 함수로 작성하는게 훨씬 간단해보이네요.
잘봤습니다! :)


// cnt == 4
ans = max(ans, sum - tmp);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ㅜ 모양을 어떻게 처리할지 고민이었는데 cnt로 처리하는 방법 잘 봤어요!👍🏻

Copy link
Member

@wimmings wimmings left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM👍🏻

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저는 모양 하나하나에 대해 다 처리해주었는데.. 이렇게 푸는 문제였군요😭 풀이 잘봤습니다!!

@clean2001 clean2001 merged commit 9d8c87f into main Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[week-09] 14500, 1992
4 participants