Skip to content

Conversation

@suyeun84
Copy link
Contributor

🧷 문제 링크

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

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

사과를 통해 얻은 총이익을 2차원 배열 형태로 정리했을 때, 형곤이가 얻을 수 있는 최대 총이익 구하기

🔍 풀이 방법

누적합 이용
arr배열에 각 지점까지의 누적합 저장해두고,
3중 for문 이용해서 사각형 크기 정해서 각 오른쪽하단 끝점 기준으로 총이익 구함

⏳ 회고

누적합....으릅다..

@suyeun84 suyeun84 self-assigned this Oct 16, 2025
@suyeun84 suyeun84 added the hint 💡 반례를 참고했거나 힌트를 얻고 풀었을 때 label Oct 16, 2025
@suyeun84 suyeun84 merged commit bcd55e9 into main Oct 16, 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.

2 participants