I made a mistake in reading the questions actually piles should be non-empty but I missed that point but no problem, I realized my mistake.
now comes the solution part it is the IOIB template so we have to divide 10 similar objects into 3 similar boxes,
so we can find it manually3
A |
B |
C |
1 |
1 |
8 |
1 |
2 |
7 |
1 |
3 |
6 |
1 |
4 |
5 |
2 |
3 |
5 |
2 |
2 |
6 |
2 |
4 |
4 |
3 |
3 |
4 |
In the above table all A, B, and C are indistinguishable boxes, and the number in their respective columns is the number of objects(indistinguishable).
now in the IOIB template order doesn’t matter as 1 1 8 and 1 8 1 are the same things