
아니 왤캐 어렵게 풀었는지 모르겠다
사실 풀긴 했는데 제대로 이해가 되진 않았다
대충 알아서 풀겠지 하고 돌렸는데 풀렸을 뿐이다...
def solution(brown, yellow):
tot = brown + yellow
for i in range(3, tot):
if tot % i == 0 :
width = i
height = int(tot/i)
if (width - 2) * (height - 2) == yellow and width >= height:
return [width, height]
