부녀회장이 될테야

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


풀이

배열을 이용해 미리 각 호수의 인원을 계산하고 입력값에 따라 저장된 배열값을 출력한다.