题意: 有n个矩形,宽都是1,然后依次给你每个矩形的高。这n个矩形连在一起,现在让你规划一个矩形出来,使得这个矩形的面积最大 思路: 其实这个题一眼看去很难想到用栈来做 那么用栈怎么做呢? 假设现在的数据是 5 1 2 3 4 5 那我们栈内的元素为 1 2 3 4 5 那么area = max ( ...
分类:
其他好文 时间:
2018-07-20 13:58:19
阅读次数:
162
纯CSS制作的图形效果 很少会有人意识到,当浏览器绘制的border,会有一个角度的问题。我们就是得用这样的一个技巧来制作三角的效果。我们只需要保证一边的边框是有色,其他边框色为透明色,这样我们就很容易制作出三角形,然后改变其大小来实现不同的效果。我们一起来看一段代码: .css-arrow-mul ...
分类:
Web程序 时间:
2018-07-19 19:13:54
阅读次数:
211
Description 给定一些数,求这些数中两个数的异或值最大的那个值 Input 多组数据。第一行为数字个数n,1 Hint Source CSGrandeur的数据结构习题 异或运算符(^ 也叫xor(以后做题会遇到xor,就是异或)) 规则:0^0 = 0,0^1=1,1^0=1,1^1=0 ...
分类:
其他好文 时间:
2018-07-16 21:40:23
阅读次数:
121
1、1216: 异或最大值 http://acm.csu.edu.cn/csuoj/problemset/problem?pid=1216 Time Limit: 2 Sec Memory Limit: 128 Mb Description 给定一些数,求这些数中两个数的异或值最大的那个值 Inpu ...
分类:
其他好文 时间:
2018-07-16 20:02:39
阅读次数:
283
题目描述 Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located withi ...
分类:
其他好文 时间:
2018-07-16 17:16:46
阅读次数:
177
题意 平面上有 n (2 ≤ n ≤ 15) 个点,现用平行于坐标轴的矩形去覆盖所有点,每个矩形至少盖两个点,矩形面积不可为0,求这些矩形的最小面积。 Input The input consists of several test cases. Each test cases begins wit ...
分类:
其他好文 时间:
2018-07-15 19:37:20
阅读次数:
171
Description Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater locate ...
分类:
其他好文 时间:
2018-07-15 19:35:55
阅读次数:
212
ACM ICPC Central Europe Regional Contest 2013 Jagiellonian University Kraków Problem A: Rubik’s RectangleProblem B: What does the fox say?Problem C: M ...
分类:
其他好文 时间:
2018-07-13 21:08:16
阅读次数:
224
函数 Rectangle ,Ellipse, RoundRect 介绍: Rectangle() 功能:该函数画一个矩形,可以用当前的画笔画矩形轮廓,用当前画刷进行填充 (默认画刷为白色)。 Ellipse() 功能:该函数用于画一个椭圆,椭圆的中心是限定矩形的中心。 使用当前画笔画椭圆,用当前的画 ...
分类:
其他好文 时间:
2018-07-13 10:17:10
阅读次数:
182
Description Due to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M (1 <= N <= 10 ...
分类:
其他好文 时间:
2018-07-12 23:52:07
阅读次数:
241