Distinguish three-qubit states

Problem Name:
Distinguish three-qubit states
Site:CodeForces
Links:
Tags:
Problem setters: