码迷,mamicode.com
首页 >  
搜索关键字:rectangles    ( 210个结果
(单调栈)poj-2559 Largest Rectangle in a Histogram
A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths but may have different h ...
分类:其他好文   时间:2017-03-25 23:52:10    阅读次数:305
Codeforces Round #395 (Div. 2) D
Description One of Timofey's birthday presents is a colourbook in a shape of an infinite plane. On the plane n rectangles with sides parallel to coord ...
分类:其他好文   时间:2017-03-22 22:59:50    阅读次数:180
Bars, rectangles with bases on x-axis
Usage Arguments Description The bar geom is used to produce 1d area plots: bar charts for categorical x, and histograms for continuous y. stat_bin exp ...
分类:其他好文   时间:2017-03-06 13:34:42    阅读次数:560
cf 763B. Timofey and rectangles
%%题解,脑洞好大啊。 四色定理什么鬼的。。所以一定是yes。 因为矩形边长都是奇数,所以可以按左下角分类,一共4类,分别1,2,3,4就可以了。 (需要4种颜色的情况大概就是4个矩形围起来一个矩形) ...
分类:其他好文   时间:2017-02-04 15:01:50    阅读次数:198
CF 395(2) D.矩形上色,模拟
CF 395(2) D. Timofey and rectangles 题意:二维平面上n个矩形上色,矩形边长都是奇数,且不会重合。用4种颜色上色,要使相邻的矩形是不同的颜色,求每个矩形的颜色。 题解:因为都是矩形,3种颜色就可以做到相邻矩形是不同颜色。这里因为矩形边长都是奇数,稍微脑补一下,可以将 ...
分类:其他好文   时间:2017-02-03 14:28:16    阅读次数:201
POJ 2411Mondriaan's Dream
题目: Squares and rectangles fascinated the famous Dutch painter Piet Mondriaan. One night, after producing the drawings in his 'toilet series' (where h ...
分类:其他好文   时间:2017-01-19 07:46:20    阅读次数:306
gym101102D Rectangles (rmq+二分)
题意: 给你一个n*m(1e3)的矩阵,让你找出元素全部相同的子矩阵的个数。 思路: 可以预处理向左和向上的最大相同长度,然后对于每列用rmq维护一个区间最小值, 这个值表示向左延伸的长度,然后对于当前的元素,二分查找距离他最近的值小于他的上一个位置, 然后当前位置的贡献就是向左延伸的长度*纵坐标之 ...
分类:其他好文   时间:2016-12-09 18:42:15    阅读次数:171
223. Rectangle Area
Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and top right corner as s ...
分类:其他好文   时间:2016-10-16 13:58:40    阅读次数:151
Gym 101102D---Rectangles(单调栈)
题目链接 http://codeforces.com/gym/101102/problem/D problem description Given an R×C grid with each cell containing an integer, find the number of subrect ...
分类:其他好文   时间:2016-10-01 00:14:58    阅读次数:191
POJ2411 Mondriaan's Dream
Description Squares and rectangles fascinated the famous Dutch painter Piet Mondriaan. One night, after producing the drawings in his 'toilet series' ...
分类:其他好文   时间:2016-09-16 16:55:51    阅读次数:201
210条   上一页 1 ... 7 8 9 10 11 ... 21 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!