Prepare superposition of basis states with the same parity

Problem Name:
Prepare superposition of basis states with the same parity
Site:CodeForces
Links:
Tags:
Problem setters: