转:http://www.ruanyifeng.com/blog/2010/09/12_colors_used_in_web_design.html前不久,ColourLovers.com公布了一项调查结果。 他们发现,美国前100大网站的Logo,主要使用12种颜色。其中,采用蓝色的网站最多,红色...
分类:
Web程序 时间:
2014-07-16 20:38:23
阅读次数:
240
Color Me Less
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 30146
Accepted: 14634
Description
A color reduction is a mapping from a set of discrete colors ...
分类:
其他好文 时间:
2014-07-13 17:21:01
阅读次数:
209
android设置背景色为透明
方法一:
只要在配置文件内activity属性配置内加上
android:theme="@android:style/Theme.Translucent"
就好了。
这样就调用了android的透明样式!
方法二:
先在res/values下建colors.xml文件,写入:
...
分类:
移动开发 时间:
2014-07-12 21:43:03
阅读次数:
276
题意:输入n, m ; 有n给位置, 初始时第i个位置的color为i, colorfulness为0。 有m次操作,一种是把成段的区域color更新为x, 对于更新的区域,每个位置(令第i个位置未更新前颜色为color[i])的colorfulness增加|color[i] -x|; 另一种操.....
分类:
其他好文 时间:
2014-07-09 20:26:02
阅读次数:
100
考试完之后打的第一场CF,异常惨烈呀,又只做出了一题了。A题呆滞的看了很久,领悟到了出题者的暗示,应该就是两个点的时候最大吧,不然的话这题肯定特别难敲,YY一发交上去然后就过了。然后就在不停地YY B题,赛后听了英姐的答案,看了题解,发现其实自己是捕捉到了正确的解题思路的,但是因为不知道怎么算出期望...
分类:
其他好文 时间:
2014-07-09 13:53:48
阅读次数:
170
题目大意:
1 l r x操作 讲 [l,r]上的节点涂成x颜色,并且每个节点的值都加上 |y-x| y为涂之前的颜色
2 l r 操作,求出[l,r]上的和。
思路分析:
如果一个区间为相同的颜色。那么我们才可以合并操作。
所以我们之前找相同的区间就好。
但是问题是如何合并操作。
那么我们定义一个val 表示这个区间每个位置上应该加上的值。
pushdown 的时候这...
分类:
其他好文 时间:
2014-07-09 11:15:47
阅读次数:
134
题目大意:Codeforces 444C DZY Loves Colors
题目大意:两种操作,1是修改区间上l到r上面德值为x,2是询问l到r区间总的修改值。
解题思路:线段树模板题。
#include
#include
#include
#include
using namespace std;
const int maxn = 5*1e5;
typedef long ...
分类:
其他好文 时间:
2014-07-09 10:28:24
阅读次数:
153
第1章 初识CSS3
CSS3课程列出第一站,先带领大家进入CSS3的世界,探索CSS3的魅力!你做好准备了吗?
第2章 边框
本课程主要讲解border-color 、border-image 、border-radius 及box-shadow 相关知识
第3章 颜色相关
学习CSS3中与颜色有关的属性,包括RGBA colors和Gradient,来实现在此...
分类:
Web程序 时间:
2014-07-08 20:49:19
阅读次数:
219
题目链接:点击打开链接
水。。
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define ll long long
#define L(x) (x<<1)
#define R(x) (x<<1|1)
#define N 100005
i...
分类:
其他好文 时间:
2014-07-08 18:23:14
阅读次数:
164
Description
Let’s play a puzzle using eight cubes placed on a 3 × 3 board leaving one empty square.
Faces of cubes are painted with three colors. As a puzzle step, you can roll one of the cubes ...
分类:
其他好文 时间:
2014-07-08 16:27:42
阅读次数:
220