摘要: 题目链接:http://codeforces.com/contest/482/problem/B 题意:给定一个长度为n个序列,要求满足m个条件:[L,R]区间内的异或和为x #include <iostream> #include <cstring> #include <algorithm> #i 阅读全文
posted @ 2019-06-05 22:06 html_11 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/contest/1174 A. Ehab Fails to Be Thanos 题意:给定一个长度为2n的数组a。有没有可能重新排序,使前n个元素的和不等于后n个元素的和? 思路:把数组a从小到大排好序,前n个元素和与后n个元素和不相等则一定存在 阅读全文
posted @ 2019-06-05 16:58 html_11 阅读(392) 评论(0) 推荐(0) 编辑