Rectangle
我们开篇先介绍一个之前用过,也是比较简单的Rectangle。简单的矩形就只用定义长和宽了,但如果要有圆角的话呢,用RadiusX和RadiusY就好啦。那么RadiusX和RadiusY到底是什么呢?看看下图就知道啦。<Rectangle Fill="Yellow" Width="300" Height="200" Stroke="Blue"...
分类:
移动开发 时间:
2015-04-04 09:21:02
阅读次数:
195
题目链接:Largest Rectangle in Histogram
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
...
分类:
其他好文 时间:
2015-04-03 17:18:59
阅读次数:
128
Largest Rectangle in a Histogram
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 12947 Accepted Submission(s): 3653
Problem Des...
分类:
其他好文 时间:
2015-04-03 15:28:51
阅读次数:
158
1514: PacksTime Limit: 10 SecMemory Limit: 128 MBSubmit: 61Solved: 4[Submit][Status][Web Board]DescriptionGive you n packs, each of it has a value v a...
分类:
其他好文 时间:
2015-04-02 22:31:47
阅读次数:
209
1552: FriendsTime Limit: 3 SecMemory Limit: 256 MBSubmit: 163Solved: 34[Submit][Status][Web Board]DescriptionOn an alien planet, every extraterrestria...
分类:
其他好文 时间:
2015-04-01 23:32:32
阅读次数:
191
题意:给出若干数字 如果能被6整除 输出BEER!! 否则输出 BOOM!!思路:用三维数组存下0到9 暴力出每个数的值 求出结果 (这题有点坑在于 1 数字可能不存在 2 数字的数量不确定)#include#include#include#includeusing namespace...
分类:
其他好文 时间:
2015-04-01 21:42:45
阅读次数:
128
问题描述:给定一个2维位矩阵,元素是0或者1。给出最大的全0矩阵大面积。
分类:
其他好文 时间:
2015-04-01 20:18:18
阅读次数:
103
Maximal Rectangle
Given
a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.
解题思路;
题意表示找到右全1形成的最大的矩形块。
解法1:
用动态规划做,若d[i][j]表示以matrix[...
分类:
其他好文 时间:
2015-03-31 22:15:43
阅读次数:
159
题目:http://acm.hdu.edu.cn/showproblem.php?pid=1506刚开始没考虑时间复杂度,直接敲了,直接tle了,之后没有思路,然后看题解,看见大神写的优化非常棒。大神的解释:(其实对于w[i]来说,如果去求后面连续的值,完全没必要一个个去比对,直接看w[i-1]的值...
分类:
其他好文 时间:
2015-03-31 19:39:33
阅读次数:
143
http://www.cnblogs.com/wwcherish/archive/2012/09/18/2690336.htmlcss3激发想象/css3各种图形#square { width: 100px; height: 100px; background: red; }#rectangle {...
分类:
Web程序 时间:
2015-03-31 19:31:07
阅读次数:
213