Mondriaan's Dream Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 20822 Accepted: 11732 Description Squares and rectangles fascinated the f ...
分类:
其他好文 时间:
2018-10-13 16:10:54
阅读次数:
214
链接 [http://codeforces.com/group/1EzrFFyOc0/contest/1028/problem/C] 题意 给你n个矩形的左下角和右上角坐标,问你至少包含在n 1个矩形的点的坐标,有多个随便输出一个 分析 分别从前到后和从后到前枚举矩形重叠的部分 分别有b[i]和c[ ...
分类:
其他好文 时间:
2018-10-04 14:31:24
阅读次数:
154
There are n rectangles in a row. You can either turn each rectangle by 90 degrees or leave it as it is. If you turn a rectangle, its width will be hei ...
分类:
其他好文 时间:
2018-10-04 10:21:14
阅读次数:
275
Description 传送门 Solution 有一个神秘的结论。。我不知道大佬是怎么场上推出来的。 一个黑白染色图,每次可以任意翻转行或列的颜色,如果每个2*2的子矩阵内黑色格子都是偶数个,则可以把它变成全黑,反之则一定不行。 证明“一定不行”:翻转行或列的时候不会改变任何2*2子矩阵的奇偶性, ...
分类:
其他好文 时间:
2018-09-22 21:17:55
阅读次数:
212
Given a grid where each entry is only 0 or 1, find the number of corner rectangles.A corner rectangle is 4 distinct 1s on the grid that form an axis-a ...
分类:
其他好文 时间:
2018-09-16 12:26:30
阅读次数:
176
There are two ways to fill basic shapes like lines and rectangles. The first is to use specific drawing methods like Graphics.fillOval(). This example ...
分类:
其他好文 时间:
2018-09-06 11:07:03
阅读次数:
166
There are two ways to draw basic shapes like circles, ovals, lines, arcs, squares, rectangles, rounded rectangles, and polygons. The first is to use s ...
题目:戳这里 题意:有n个矩阵,求一个点(保证存在)至少在n-1个点内。 解题思路:因为矩阵与坐标轴平行,所以我们画图可以发现如果存在点满足条件,则这些点中一定有一个是矩阵的顶点。我们可以把所有顶点的横纵坐标分别存下来排序,左下角的最大两个横纵坐标与右上角的最小两个横纵坐标相互结合,一定有一个是答案 ...
分类:
其他好文 时间:
2018-09-05 18:00:48
阅读次数:
139
You are given n rectangles on a plane with coordinates of their bottom left and upper right points. Some (n?1) of the given nrectangles have some comm ...
分类:
其他好文 时间:
2018-09-01 12:12:09
阅读次数:
207
~~(这道题太简单啦...虽说我锤了一上午都没过...我能说这道题和$CF1029C$算是同一道题吗...)~~ 按照时间顺序来说...$CF1029$在$CF1028$前面(而且$CF1029$还是$Div3$),前后没差多长时间就惊现高相似度题目~~(所以CF是有多迫切想让大家上分)~~ "CF ...
分类:
其他好文 时间:
2018-08-29 16:55:54
阅读次数:
179