Skip to content

Conversation

@suyeun84
Copy link
Contributor

🧷 문제 링크

https://school.programmers.co.kr/learn/courses/30/lessons/62048

🧭 풀이 시간

20분

👀 체감 난이도

✏️ 문제 설명

가로 길이 W, 세로 길이 H인 직사각형에서
종이의 대각선 꼭지점 2개 잇는 방향으로 종이를 잘랐을 때, 1x1크기의 사용할 수 있는 정사각형 개수 구하기

🔍 풀이 방법

최대 공약수 구하는 유클리드 호제법 이용
재귀 함수 돌리면서 특정 패턴이 반복되는 최대 공약수만큼을 반복함

⏳ 회고

공식같은거 다시 다 봐야겠다..

@suyeun84 suyeun84 self-assigned this Sep 27, 2025
@suyeun84 suyeun84 added the hint 💡 반례를 참고했거나 힌트를 얻고 풀었을 때 label Sep 27, 2025
@ShinHeeEul ShinHeeEul merged commit 3c68076 into main Sep 27, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hint 💡 반례를 참고했거나 힌트를 얻고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants