UVA 501 - Black Box
题目链接
题意:给定一些操作,每次add进一个数,然后第i次询问的时候输出当前第i小的数字
思路:用两个优先队列搞,相当于把序列分成两个序列,每次取的答案就是后一个队列的头
代码:
#include
#include
#include
#include
using namespace std;
const int N ...
分类:
其他好文 时间:
2014-08-03 18:07:15
阅读次数:
226
1.4.3 用灰度/明度指导色彩搭配
试着只通过调整不等于0的通道,让上一排的色彩在灰度上保持一致,把三个颜色分别代入到心理学公式。得
Gray(red) = r * 0.299
Gray(green) = g * 0.587
Gray(blue) = b * 0.114
让它们灰度相等,则
r * 0.299 = g * 0.587 = b *...
分类:
其他好文 时间:
2014-08-02 18:28:34
阅读次数:
259
参考:http://blog.csdn.net/feiyangxiaomi/article/details/38338305
我们在平时开发时经常要用到各种颜色,有了下面这两张表,妈妈再也不用担心你的配色问题了。
一:内置颜色:
public static final int BLACK
Added in API level 1
Constant Va...
分类:
移动开发 时间:
2014-08-02 15:35:03
阅读次数:
305
记录一下android自带颜色。
Constants
public static final int BLACK
Added in API level 1
Constant Value: -16777216 (0xff000000)
public static final int BLUE
Added in API leve...
分类:
移动开发 时间:
2014-08-01 19:44:42
阅读次数:
237
传送门:http://poj.org/problem?id=1442Black BoxTime Limit: 1000MSMemory Limit: 10000KDescriptionOur Black Box represents a primitive database. It can save...
分类:
其他好文 时间:
2014-08-01 19:12:02
阅读次数:
211
1.1RGB模式,ARGB模式及其运算1.1.1 RGB模式及其运算RGB是色光三原色(Red红,Green绿,Blue蓝)的简写,物理学上,自然界的所有颜色都可以分解为这三种色光。不同的颜色,色光的值会有所差别。反过来,任何颜色都可以通过红绿蓝三种色光合成出来。白色把任何色光都反射出来了,所以它的...
分类:
其他好文 时间:
2014-08-01 19:11:42
阅读次数:
268
MM.div1{ position: relative; height: 150px; width: 150px; margin: 0px; padding:2px; border: 1px solid black; perspective:550; -webkit-perspective:550;...
分类:
Web程序 时间:
2014-08-01 18:32:02
阅读次数:
200
1:Black-Scholes方程模型优缺点:优点:对欧式期权,有精确的定价公式;缺点:对美式期权,无精确的定价公式,不可能求出解的表达式,而且数学推导和求解过程在金融界较难接受和掌握。2:思想:假定到期且只有两种可能,而且涨跌幅均为10%的假设都很粗略。修改为:在T分为狠多小的时间间隔Δt,而在每...
分类:
其他好文 时间:
2014-08-01 18:28:42
阅读次数:
334
kaptcha.border??是否有边框??默认为true??我们可以自己设置yes,no??
kaptcha.border.color???边框颜色???默认为Color.BLACK??
kaptcha.border.thickness??边框粗细度??默认为1??
kaptch...
分类:
其他好文 时间:
2014-08-01 16:24:02
阅读次数:
692
DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a...
分类:
其他好文 时间:
2014-08-01 12:50:41
阅读次数:
285