Skip to content

Conversation

@oncsr
Copy link
Contributor

@oncsr oncsr commented Mar 3, 2025

🧷 문제 링크

https://www.acmicpc.net/problem/1364

🧭 풀이 시간

35분

👀 체감 난이도

✏️ 문제 설명

image

  • 무한한 육각형 블록 세계에서, N개의 블록으로 울타리를 쳐서 넓이를 최대로 해보자.

🔍 풀이 방법

[사용한 알고리즘]

  • DP

  • 둘레가 N인 울타리는 둘레가 N-6인 울타리를 감싼 형태가 된다.
  • 따라서, DP[N] = DP[N-6] + N이 성립한다.

⏳ 회고

  • 육각형이라 규칙 찾기가 힘들었다..

@oncsr oncsr added the success 👍 해설을 보지 않고 풀었을 때 label Mar 3, 2025
@ShinHeeEul ShinHeeEul merged commit 192a9ed into main Mar 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants