Red and Black Problem Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing ...
分类:
其他好文 时间:
2016-04-17 20:33:16
阅读次数:
157
题意 一个环形项链,有rbw三种珠子,r代表red,b代表blue,w代表white,从任意一个位置断开,两端分别取珠子,同一端取的珠子要相同颜色,w可以染成想要的颜色,即既可当作r也可以当作b,求最多取得的珠子个数。最多有350个珠子。 分析 可以枚举断开的位置,然后模拟取珠子。也可以枚举起点位置 ...
分类:
其他好文 时间:
2016-04-17 17:44:01
阅读次数:
141
var content = $("<div></div>"); content.text("新建节点的内容"); //content.html("<b>hello</b>"); content.addClass("one"); content.css("background-color","red" ...
分类:
Web程序 时间:
2016-04-17 12:56:20
阅读次数:
166
用 JQuery 中的each 方法可以方便的遍历节点的集合,使用方法如下: 使用案例一: $("input[type='text']").each(function(index){ $(this).css("background-color","red"); }); 使用案例二: $("#cont ...
分类:
Web程序 时间:
2016-04-17 12:54:49
阅读次数:
159
安装工具 debian =》 apt-get (In Debian like OS) red hat=》 yum -y (In Red Hat like OS) mac =》 brew sl 火车命令 toilet 好玩的文字命令 cowsay 牛说 cmatrix 自动掉文字 ...
分类:
系统相关 时间:
2016-04-17 00:40:08
阅读次数:
185
DFS 没什么好说的 新id在poj交的第一题,应该选G++而不是GCC的。无辜CE三次。好像不能命名数组名为map也会CE的。 代码 ...
分类:
其他好文 时间:
2016-04-16 10:49:41
阅读次数:
161
Problem Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black til ...
分类:
其他好文 时间:
2016-04-15 19:56:05
阅读次数:
140
TextView tText=(TextView) findViewById(R.id.textv_name); //第1种: tText.setTextColor(android.graphics.Color.RED);//系统自带的颜色类 // 第2种: tText.setTextColor(0 ...
分类:
移动开发 时间:
2016-04-15 18:06:54
阅读次数:
170
数据库版本: 5.6.16??操作系统: Red Hat Enterprise Linux Server release 6.3 (Santiago)??在插入数据的时候提示告警:?mysql> show warnings;+ + + +| Level | Code | Message |+ + + ...
分类:
其他好文 时间:
2016-04-15 18:00:53
阅读次数:
148
口袋中有5种颜色的小球,每次从口袋中任意取3个,问得到3种不同颜色的小球的可能取法?#define_CRT_SECURE_NO_WARNINGS1#include<iostream>#include<iomanip>usingnamespacestd;intmain(){ enumcolor{red,yellow,blue,white,black};//声明枚举类型color colorpri;/..
分类:
其他好文 时间:
2016-04-14 22:38:14
阅读次数:
227