摘要: 链接:http://acm.hdu.edu.cn/showproblem.php?pid=5014 题意:给出范围N,给出0-N的一个排列a。让你求出另外一个排列b,使 t = a1 ^ b1 + a2 ^ b2 + ...+an ^ bn(^表示异或)最大。并求出最大的t。 思路:首先,... 阅读全文
posted @ 2014-09-19 17:03 wolf940509 阅读(220) 评论(0) 推荐(0)