Xor sum 题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=6955 题意 给定 \(n\) 个数,求异或和大于等于 \(k\) 的最短的区间左右端点,如果有多个答案,输出左端点编号最小的那个。 思路 由于异或的自反性,我们做个前缀异 ...
Problem Description Given a sequence of integers of length n, find the shortest consecutive subsequence witch XOR sum not less than k. If there are multiple consecutive subsequences of the same length ...
2021-07-21 16:22 6 377 推荐指数:
Xor sum 题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=6955 题意 给定 \(n\) 个数,求异或和大于等于 \(k\) 的最短的区间左右端点,如果有多个答案,输出左端点编号最小的那个。 思路 由于异或的自反性,我们做个前缀异 ...
Problem Description One day, a zombie came to the Lawn of the Dead, which can be seen as an n×m gri ...
Problem Description Alice and Bob are playing a game. They take turns to operate. There are n numb ...
Banzhuan *Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total ...
2021“MINIEYE杯”中国大学生算法设计超级联赛(10) 庆祝暑期训练赛结束了 Pty loves lines 题意 \(n\)条直线,求直线相交的所有可能的交点数情况并输出。 思路 首先,每条直线最极端情况(所有直线不平行),那么就有 ...
: 1006 代码都给你了,直接模拟。 code: 1007 出题人的英语水平真的可以。 考虑最 ...
2021“MINIEYE杯”中国大学生算法设计超级联赛(8) 1003. Ink on paper 题意 滴墨水在纸上,墨水以每秒\(0.5\)向四面八方感染, 求多久后所有的墨水都能连接起来。 思路 \(prim\)求一遍最小生成树即可,套板子0.0 ...
2021“MINIEYE杯”中国大学生算法设计超级联赛(5) 1003.VC Is All You Need 题意 给你一个k维平面,问你是不是随意放n个点都能用k-1条线分隔开 思路 emmmm, 思考一下, n > k + 1都是不行 ...