题目:
链接:点击打开链接
题意:
DFS搜索
算法:
dfs
思路:
简单题
代码:
#include
#include
#include
using namespace std;
int w,h;
char s[30][30];
int vis[30][30];
int cnt;
void dfs(int x,int y)
{
if...
分类:
其他好文 时间:
2014-05-16 00:02:10
阅读次数:
438
在 beaglebone black 开机启动自己的QT程序...
分类:
其他好文 时间:
2014-05-15 03:06:09
阅读次数:
265
1.Android资源文件
构建应用程序需要丰富多彩的色彩,在Android平台中可以将相关颜色信息配置在color.xml文件中。
例:
xml version="1.0" encoding="utf-8"?>
resources>
color name="green">#00EE00color>
color name="black">#000000color>...
分类:
移动开发 时间:
2014-05-13 08:31:48
阅读次数:
583
Color类Constants|____BLACK, BLUE,
CYANMethods|____argb,rgb,alpha, red, green, blue|____parseColor
分类:
移动开发 时间:
2014-05-10 22:53:15
阅读次数:
315
ZOJ Problem Set - 3780
Paint the Grid Again
Time Limit: 2 Seconds Memory Limit: 65536 KB
Leo has a grid with N × N cells. He wants to paint each cell with a specific color (either black ...
分类:
其他好文 时间:
2014-05-09 02:00:35
阅读次数:
506
Paint the Grid Reloaded
Time Limit: 2 Seconds
Memory Limit: 65536 KB
Leo has a grid with N rows and M columns. All cells are painted with either black or white initially.
Two cells A ...
分类:
其他好文 时间:
2014-05-07 07:28:35
阅读次数:
480
Paint the Grid Again
Time Limit: 2 Seconds
Memory Limit: 65536 KB
Leo has a grid with N × N cells. He wants to paint each cell with a specific color (either black or white).
Leo has a...
分类:
其他好文 时间:
2014-05-07 06:56:10
阅读次数:
470
R-B Tree简介 Red-Black
Tree,是一种特殊的二叉查找树。红黑树的每个节点上都有存储位表示节点的颜色,即红(Red)或黑(Black)。红黑树的特性:(1)每个节点是黑或红。(2)根节点是黑色。(3)每个叶子节点(NIL)是黑色。[注意:这里叶子节点,是指为空(NIL或NULL)....
分类:
其他好文 时间:
2014-05-07 01:53:34
阅读次数:
570
红黑树的性质
红黑树是一棵二叉搜索树,它在每个节点上增加了一个存储位来表示结点的颜色,可以是RED或者是BLACK,红黑树确保没有一条路径会比其它路径长2倍,因而是近似平衡的。
树中的每个结点包含5个属性:color、key、left、right、parent,如果一个结点没有子结点或者是父结点,则该结点相应指针属性的值为NIL。可以把NIL视为指向二叉搜索树
的也结点的指针...
分类:
其他好文 时间:
2014-05-04 09:39:36
阅读次数:
579
将界面背景设置为黑色的几种方法:
新建项目时候 第二次next之后(不同sdk版本可能不同),Background Color项点击可选。
开发布局文件,选择视图查看 就是下边二个选项卡中的第一个(Graphical),然后上边有个
AppTheme点击->Theme->前三项(Theme.Black等)都可以
在你最外层的layout里边设置 android:backgroun...
分类:
移动开发 时间:
2014-05-04 09:31:18
阅读次数:
391