Мой подход оказался слишком неэффективным. Для
он уже выдохнется.
Но
с трудом осилил. Вот все 32 решения, из которых первые 28 с кусками, кратными
, а последние 4 — кратными
:
Код:
1, 1, 2, 2, 4, 5, 7, 8, 10, 10, 10
1, 1, 2, 2, 5, 5, 7, 7, 10, 10, 10
1, 1, 2, 3, 4, 5, 7, 8, 9, 10, 10
1, 1, 2, 3, 4, 6, 6, 8, 9, 10, 10
1, 1, 2, 3, 5, 5, 7, 7, 9, 10, 10
1, 1, 3, 3, 5, 5, 7, 7, 9, 9, 10
1, 2, 2, 2, 3, 5, 6, 9, 10, 10, 10
1, 2, 2, 2, 3, 5, 7, 8, 10, 10, 10
1, 2, 2, 2, 5, 5, 6, 7, 10, 10, 10
1, 2, 2, 3, 3, 5, 7, 8, 9, 10, 10
1, 2, 2, 3, 4, 4, 7, 8, 9, 10, 10
1, 2, 2, 3, 4, 5, 6, 8, 9, 10, 10
1, 2, 2, 3, 4, 5, 7, 8, 8, 10, 10
1, 2, 2, 3, 4, 6, 6, 7, 9, 10, 10
1, 2, 2, 3, 5, 5, 6, 7, 9, 10, 10
1, 2, 2, 3, 5, 5, 7, 7, 8, 10, 10
1, 2, 2, 4, 5, 5, 6, 7, 8, 10, 10
1, 2, 3, 3, 5, 5, 7, 7, 8, 9, 10
1, 2, 3, 4, 4, 6, 6, 7, 8, 9, 10
1, 2, 3, 4, 5, 5, 6, 7, 8, 9, 10
2, 2, 2, 3, 3, 5, 6, 7, 10, 10, 10
2, 2, 2, 3, 4, 5, 5, 7, 10, 10, 10
2, 2, 3, 3, 4, 5, 6, 7, 8, 10, 10
2, 2, 3, 3, 5, 5, 6, 7, 7, 10, 10
2, 2, 3, 4, 4, 5, 5, 7, 8, 10, 10
2, 2, 3, 4, 5, 5, 6, 6, 7, 10, 10
2, 3, 3, 4, 5, 5, 6, 7, 7, 8, 10
2, 3, 4, 4, 5, 5, 6, 6, 7, 8, 10
1, 3, 4, 5, 7, 11, 13, 17, 19, 20, 20
1, 3, 4, 7, 9, 11, 13, 15, 17, 20, 20
1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 20
3, 4, 5, 7, 9, 11, 13, 15, 16, 17, 20