题目链接&&题目大意
http://codeforces.com/contest/923/problem/C
For given A A and , find the lexicographically smallest message O O , for which there exists a permutation such that Oi O i XOR π(Pi) π ( P i )
http://codeforces.com/contest/923/problem/C
For given A A and , find the lexicographically smallest message O O , for which there exists a permutation such that Oi O i XOR π(Pi) π ( P i )