중복조합 문제 맞습니다!
식이 틀려서 WA입니다. 왜 이 문제를 중복조합으로 풀 수 있는 건지 다시 생각해보시면 좋을 것 같습니다
14
4
5 1 1 1
답은 35가지입니다.
1 1 1 1 1 0 1 0 1 0 1 0 0 0
1 1 1 1 1 0 1 0 1 0 0 1 0 0
1 1 1 1 1 0 1 0 1 0 0 0 1 0
1 1 1 1 1 0 1 0 1 0 0 0 0 1
1 1 1 1 1 0 1 0 0 1 0 1 0 0
1 1 1 1 1 0 1 0 0 1 0 0 1 0
1 1 1 1 1 0 1 0 0 1 0 0 0 1
1 1 1 1 1 0 1 0 0 0 1 0 1 0
1 1 1 1 1 0 1 0 0 0 1 0 0 1
1 1 1 1 1 0 1 0 0 0 0 1 0 1
1 1 1 1 1 0 0 1 0 1 0 1 0 0
1 1 1 1 1 0 0 1 0 1 0 0 1 0
1 1 1 1 1 0 0 1 0 1 0 0 0 1
1 1 1 1 1 0 0 1 0 0 1 0 1 0
1 1 1 1 1 0 0 1 0 0 1 0 0 1
1 1 1 1 1 0 0 1 0 0 0 1 0 1
1 1 1 1 1 0 0 0 1 0 1 0 1 0
1 1 1 1 1 0 0 0 1 0 1 0 0 1
1 1 1 1 1 0 0 0 1 0 0 1 0 1
1 1 1 1 1 0 0 0 0 1 0 1 0 1
0 1 1 1 1 1 0 1 0 1 0 1 0 0
0 1 1 1 1 1 0 1 0 1 0 0 1 0
0 1 1 1 1 1 0 1 0 1 0 0 0 1
0 1 1 1 1 1 0 1 0 0 1 0 1 0
0 1 1 1 1 1 0 1 0 0 1 0 0 1
0 1 1 1 1 1 0 1 0 0 0 1 0 1
0 1 1 1 1 1 0 0 1 0 1 0 1 0
0 1 1 1 1 1 0 0 1 0 1 0 0 1
0 1 1 1 1 1 0 0 1 0 0 1 0 1
0 1 1 1 1 1 0 0 0 1 0 1 0 1
0 0 1 1 1 1 1 0 1 0 1 0 1 0
0 0 1 1 1 1 1 0 1 0 1 0 0 1
0 0 1 1 1 1 1 0 1 0 0 1 0 1
0 0 1 1 1 1 1 0 0 1 0 1 0 1
0 0 0 1 1 1 1 1 0 1 0 1 0 1