码迷,mamicode.com
首页 >  
搜索关键字:csu 1547 rectangle    ( 2022个结果
POJ 2559 Largest Rectangle in a Histogram RMQ || 单调栈
题目链接:点击打开链接 题意就是求最大面积 枚举每个柱子作为起点 然后二分两边长度。 求个区间最值。 #include #include #include using namespace std; #define ll long long #define N 100100 inline bool rd(int &n){ int x = 0, tmp = 1; ...
分类:其他好文   时间:2014-08-16 18:34:41    阅读次数:228
HTML5- Canvas入门(二)
上篇文章我们了解了canvas的定义、获取和基础的绘图操作,其中的绘图功能我们讲解了线段绘制、上色、描边等方面知识点。今天我们来讲讲矩形(Rectangle)和多边形的绘制。矩形的绘制一共有两个口令,分别是ctx.fillRect(x, y, width, height)和ctx.strokeRec...
分类:Web程序   时间:2014-08-15 19:37:19    阅读次数:348
HTML5- Canvas入门(二)
上篇文章我们了解了canvas的定义、获取和基础的绘图操作,其中的绘图功能我们讲解了线段绘制、上色、描边等方面知识点。今天我们来讲讲矩形(Rectangle)和多边形的绘制。矩形的绘制一共有两个口令,分别是 ctx.fillRect(x, y, width, height) 和 ctx.stroke...
分类:Web程序   时间:2014-08-15 19:18:39    阅读次数:334
uva 705 - Slash Maze
Slash MazeBy filling a rectangle with slashes (/) and backslashes ( ), you can generate nice little mazes. Here is an example:As you can see, paths i....
分类:其他好文   时间:2014-08-15 14:30:58    阅读次数:272
[LeetCode] Maximal Rectangle(good)
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.参考“Largest Rectangle in Histogram...
分类:其他好文   时间:2014-08-15 12:45:58    阅读次数:162
LeetCode "Largest Rectangle in Histogram" - TRICKY MONO-QUEUE
I got a DP solution first which is O(n^2). Apparently it is not a optimized one - think about: it is linear value space. There must be O(n) solution.A...
分类:其他好文   时间:2014-08-15 05:04:07    阅读次数:249
CSU 1290
1290: Random IntegersTime Limit:1 SecMemory Limit:128 MBSubmit:72Solved:45[Submit][Status][Web Board]DescriptionWe choose an integer K (K > 0). Then w...
分类:其他好文   时间:2014-08-14 23:48:26    阅读次数:211
To the Max
DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located...
分类:其他好文   时间:2014-08-14 23:39:56    阅读次数:234
CSU 1307
1307: City TourTime Limit:1 SecMemory Limit:128 MBSubmit:549Solved:124[Submit][Status][Web Board]DescriptionAlice想要从城市A出发到城市B,由于Alice最近比较穷(不像集训队陈兴老师是个...
分类:其他好文   时间:2014-08-14 23:25:46    阅读次数:198
CSU 1060
1060: Nearest SequenceTime Limit:1 SecMemory Limit:64 MBSubmit:370Solved:118[Submit][Status][Web Board]Description Do you remember the "Nearest Number...
分类:其他好文   时间:2014-08-14 23:09:26    阅读次数:211
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!