option=com_onlinejudge&Itemid=8&category=512&page=show_problem&problem=2041">题目链接题意:给定n个正整数。把它们划分成尽量少的严格递增序列(前一个数必须小于后一个数)。输出序列个数的最小值k和这k个序列。思路:出现次数最多...
分类:
其他好文 时间:
2015-07-30 09:27:22
阅读次数:
150
show databases;show tables;use zzz;//使用一个database;create table wyp(id int, name string,age int, tel string)ROW FORMAT DELIMITEDFIELDS TERMINATED BY '\...
分类:
其他好文 时间:
2015-07-29 21:09:46
阅读次数:
98
Set Matrix Zeroes
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.
click to show follow up.
Follow up:
Did you use extra space?
A straight for...
分类:
其他好文 时间:
2015-07-29 17:16:51
阅读次数:
112
在iOS开发中,用户在进行文本输入的时候,往往会用到虚拟键盘上的回车键,也就是Return Key.回车键有时候可以是“完成”(表示输入结束),可以是“下一项”(连续信息输入),可以是“搜索”(网页中输入),可以是“发送”(邮件输入),可以是“加入”(比如连接Wi-Fi),等等。我们需要怎么设置呢?方法如下:
(1)选中一个Text Field,点击右侧的"Show the Attributes...
分类:
移动开发 时间:
2015-07-29 12:23:47
阅读次数:
169
mysql的变量:服务器变量:使用参数改变mysql运行特性。即配置文件中的定义的指令。查看服务器变量:mysql>SHOW[GLOBAL][SESSION]VARIABLES[LIKE‘STRING‘];mysql>SELECT@@GLOBAL|[SESSION]STRING;修改服务变量:mysql>SETGLOBAL|SESSIONSTRING=‘VALUE‘;按照作用域划分..
分类:
数据库 时间:
2015-07-29 06:45:23
阅读次数:
127
JDK动态代理的代理类必须实现于接口。如果要代理类,则使用CGLIB代理。先定义一个接口:public interface Character { public void show();}接着定义一个类:public class A implements Character{ @Over...
分类:
其他好文 时间:
2015-07-28 23:01:09
阅读次数:
186
一,工程结构,如下图所示:
二,代码
PasswordInputWindow.h
#import
@interface PasswordInputWindow : UIWindow
+(PasswordInputWindow *)shareInstance;
-(void)show;
@end
Passwo...
一,工程结构,如下图所示:二,代码PasswordInputWindow.h#import @interface PasswordInputWindow : UIWindow+(PasswordInputWindow *)shareInstance;-(void)show;@endPasswordI...
贪心的题目
按照持续时间去排序
时间相等则开始时间靠前的放在前面
放一个将对应的时间区间全部置1
注意判断的时候并不需要去判断区间端点的情况
看能不能再A一道,不行就回去开撸了 = =、
#include
#include
#include
#include
using namespace std;
struct show
{
int st;
int et;
}h[1...
分类:
其他好文 时间:
2015-07-28 18:41:28
阅读次数:
97
UVA 1386 - Cellular Automatonoption=com_onlinejudge&Itemid=8&page=show_problem&category=489&problem=4132&mosmsg=Submission+received+with+ID+13911770" ...
分类:
其他好文 时间:
2015-07-28 18:18:33
阅读次数:
107