摘要: 因为每个宝石只与另外一个宝石异或,可以发现宝石的左边比他大的第2个到右边比他大的第2个区间是这个宝石能够选取另一个与其异或的范围。枚举每个宝石,找到左右区间,暴力更新即可。。。标程是可持久化字典树。mycode:/** * Problem:ALO * Author:Shun Yao * Time:2013.5.22 * Result:Accepted */ #include <cstring>#include <cstdlib>#include <cstdio> using namespace std; long max(long x, long y) { 阅读全文
posted @ 2013-05-22 22:14 hsuppr 阅读(442) 评论(0) 推荐(0) 编辑