Permutations and queries

2.6

5 votes
Combinatorics, Dynamic Programming, Easy, Math

?