码迷,mamicode.com
首页 >  
搜索关键字:white spaces    ( 3888个结果
[LeetCode] Sort Colors 颜色排序
Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, wh...
分类:编程语言   时间:2015-03-16 12:23:02    阅读次数:140
zsh命令提示符
在.zshrc中加入:PROMPT=$'[%{$fg[white]%}%n@%m%{$reset_color%} %~]%# '命令提示符为: [root@10-9-57-162 ~]# 或者:PROMPT=$'%{$fg[cyan]%}%* %D%{$reset_color%}|%{$fg[white]%}%U%n%u@%U%m%u%{$reset_color%}|%{$fg[yellow]%}...
分类:其他好文   时间:2015-03-15 21:24:49    阅读次数:874
LPC1788的LCD接口驱动真彩屏
#ifndef __LCD_H_#define __LCD_H_#include "common.h"#include "debugserial.h"#include "delay.h"#include "sdram.h"#define White 0xFFFFFF#define Black 0x0...
分类:其他好文   时间:2015-03-15 18:22:52    阅读次数:225
几种处理文字的小技巧
通过CSS可以对文字有很不错的处理效果。以下就简单的整理几种文字处理技巧。持续更新。一、文字溢出:text-overflow 基本的式样如下:1 .huanhang {2 display: block; /*必须是块级元素*/3 white-space: nowrap; /*不换行...
分类:其他好文   时间:2015-03-15 16:38:13    阅读次数:135
LeetCode Sort Colors
1.题目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 ...
分类:其他好文   时间:2015-03-14 23:19:13    阅读次数:238
POJ-3069-Saruman's Army(Java简单贪心)
Saruman's Army Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 4699   Accepted: 2430 Description Saruman the White must lead his army along a straight path...
分类:编程语言   时间:2015-03-14 15:25:18    阅读次数:211
A Knight's Journey
DescriptionBackgroundThe knight is getting bored of seeing the same black and white squares again and again and has decided to make a journeyaround th...
分类:其他好文   时间:2015-03-13 22:10:39    阅读次数:223
判断语句 if else
语句:判断,循环,形成程序分支和循环。选择控制: if , else, switch, case循环控制:white, do, for, foreach跳转语句:break, continue异常处理:try, catch , finallyif 相当于条件运算符:if 是如果的意思,else是另外...
分类:其他好文   时间:2015-03-13 20:40:28    阅读次数:121
CSS 常用自定义样式
目录:1. 文本单行显示,并对超出部分截断以省略号代替;章节:1. 文本单行显示,并对超出部分截断以省略号代替;参见以下代码:1 div{2 /*当文本溢出时,显示省略号*/3 text-overflow: ellipsis;4 /*强制文本不换行*/5 white-...
分类:Web程序   时间:2015-03-11 00:31:00    阅读次数:197
sgu-234 Black-White King Strikes Back
题目大意: 给你一个n*m的0,1矩阵(n,m 两个士兵相邻,问最多可以放多少个? 解题思路: 首先对根据i+j的奇偶性构建二分图,然后跑一个最大匹配,然后ans=1的个数-最大匹配数应该脑补一下就行了吧。。。。。 然后就是输出的问题了。 首先找到在二分图匹配中没有被匹配到得点,然后将其置为放置士兵,然后在从这个点往周围走,如果周围的点是二分图中匹配的点,我们设这个点为...
分类:其他好文   时间:2015-03-10 15:36:25    阅读次数:178
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!