一、设置字体大小Window-->Preferences-->Gengeral-->Appearance-->Colors and Fonts--->Basic-->Text Font最舒服字体:Consolas 、Monaco 大小:14二、设置背景颜色豆沙绿Window-->...
分类:
系统相关 时间:
2014-08-20 12:22:42
阅读次数:
388
Color Me LessTime Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionA color reduction is a mapping from a set of discrete colors to a smaller one. The solu...
分类:
其他好文 时间:
2014-08-19 14:37:44
阅读次数:
195
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.
Here, we will use the integers ...
分类:
其他好文 时间:
2014-08-16 12:35:30
阅读次数:
233
题目链接 1 #include 2 #include 3 4 short G[101][101]; 5 bool vis[101]; 6 short match[101]; 7 short n; 8 9 bool dfs(short x, short c)10 {11 int i;1...
分类:
其他好文 时间:
2014-08-15 23:47:59
阅读次数:
275
50 years, 50 colors
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1635 Accepted Submission(s): 892
Problem Description
On Octo...
分类:
其他好文 时间:
2014-08-15 21:13:59
阅读次数:
247
题目地址:HDU 1498
晕啊。。。三个人同时做的这个题,结果全都理解错意思了。。而且每个人理解错的地方还都不一样。。但是样例还都能过,。。。简直炫酷。。。
题意:n*n的矩阵放置不同的颜色(不同的数字代表不同的颜色),你有k次选择,每一次只能选择某一行或某一列,可以消除该行(列)的所有颜色,问有哪几种颜色,无论怎样经过k次选择后依然无法完全抹去。
这个题的思路就是分别求出每种颜色的最少操...
分类:
其他好文 时间:
2014-08-15 14:45:58
阅读次数:
174
解题报告
题意:
给你一个矩阵,矩阵里面是气球,气球有1-50种颜色,问你在k次之内能不能把那种存在的颜色消掉(每种颜色k次机会),不能消掉的颜色按升序输出。
思路:
白想一上午了,理解错了题意,原来每种有k次可以消除的机会,还以为是总共k次机会消气球。
理解对了就很好做,类似POJ3041
求最小点覆盖。用最少的点覆盖最多的边。
每次枚举颜色看是否操作次数超过k次。
英语。。。。...
分类:
其他好文 时间:
2014-08-15 14:45:00
阅读次数:
239
50 years, 50 colors
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1617 Accepted Submission(s): 881
Problem Description
On Octorber...
分类:
其他好文 时间:
2014-08-15 14:43:38
阅读次数:
213
题意很简单了,对一个区间有两种操作:
1. "C A B C" Color the board from segment A to segment B with color C.
//A~B涂上颜色C
2. "P A B" Output the number of different colors painted between segment A and segment B (includ...
分类:
其他好文 时间:
2014-08-15 14:39:58
阅读次数:
292
CAGradientLayer可以方便的处理颜色渐变。Properties:@property(copy)NSArray*colors渐变颜色的数组[cpp]view plaincopy[NSArrayarrayWithObjects:(id)[[[UIColorblackColor]colorWi...
分类:
其他好文 时间:
2014-08-14 16:26:38
阅读次数:
125