AND-permutations

Problem Name:
AND-permutations
Site:CodeForces
Links:
Tags:
Problem setters: