편집 시간: 2022년 2월 24일 오후 3:10

코드

Algorithm/11660.py at main · Junroot/Algorithm

풀이

Summed-area table을 이용하면 O(n^2)만에 해결이 가능하다.