Discussion About Prom Night

This is Discussion thread about Prom Night

what is the exact solution for this problem without time limit exceeded.