* $2 ≤ N ≤ 9$
* $1 ≤ K ≤ 5$
* $1 ≤ A(i) ≤ TOTAL$, unde $TOTAL$ reprezinta numarul total de permutari de ordinul N cu proprietatea ceruta existente
* $1 ≤ A(i) ≤ TOTAL$, unde $1 ≤ i ≤ K$ iar $TOTAL$ reprezinta numarul total de permutari de ordinul N cu proprietatea enuntata existente
h2. Exemplu
table(example).
|_. permfix.in |_. permfix.out |
| 3 2
1 2
1 2
| 2 3 1
3 1 2
3 1 2
|
h3. Explicație
Permutarile (1, 2, 3), (1, 3, 2), (2, 1, 3) si (2, 3, 1) au puncte fixe.
Permutarile (1, 2, 3), (1, 3, 2), (2, 1, 3) si (3, 2, 1) au puncte fixe.
== include(page="template/taskfooter" task_id="permfix") ==