随笔分类 - 算法->模拟
摘要:题解 第一个子任务直接询问最大最小,每次可以问出来两个,再最大最小 1再问两个,最多问$\frac{N + 1}{2}$次就还原出了序列 第二个子任务由于差分肯定会大于等于$\lceil \frac{mx mn}{N 1} \rceil$ 那么我们直接把序列最大最小按照这个值分块,只用两个块之间的差
阅读全文
摘要:"题面" 题解 推结论大题……然而我推不出什么结论 奇环显然是NO 如果一个联通块里有两个分离的环,也是NO 如果一个联通块里,点数为n,边数为m m = n + 2的时候,肯定是NO m = n + 1的时候 如果只存在一个双联通分量的话,取出这个双联通分量,存在两个点点度为3 他们之间有3条路径
阅读全文
摘要:Four rectangles are given. Find the smallest enclosing (new) rectangle into which these four may be fitted without overlapping. By smallest rectangle,
阅读全文
摘要:Shaping Regions N opaque rectangles (1 <= N <= 1000) of various colors are placed on a white sheet of paper whose size is A wide by B long. The rectan
阅读全文
摘要:You've just be assigned the project of implemented a windowing interface. This windowing interface is fairly simple, and fortunately, you don't have t
阅读全文
摘要:High up in the night sky, the shining stars appear in clusters of various shapes. A cluster is a non-empty group of neighbouring stars, adjacent in ho
阅读全文
摘要:Farmer John's hobby of conducting high-energy physics experiments on weekends has backfired, causing N wormholes (2 <= N <= 12, N even) to materialize
阅读全文

浙公网安备 33010602011771号