Generate superposition of all basis states

Problem Name:
Generate superposition of all basis states
Site:CodeForces
Links:
Tags:
Problem setters: