第一次写状压dp……
题意:http://blog.csdn.net/dyx404514/article/details/15506601
状压dp+博弈吧……
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
int d...
分类:
其他好文 时间:
2014-11-14 19:49:04
阅读次数:
216
顺序栈的数据结构如下:
typedef struct
{
ElemType data[MaxSize]; //栈数据
int top; //
}SqStack;
实现下列函数:
void InitStack(SqStack* &s); //初始化栈
void DestroyStack(SqStack* &s); //销毁栈
int S...
分类:
其他好文 时间:
2014-11-14 19:48:11
阅读次数:
165
Walking on the Safe Side
Square City is a very easy place for people to walk around. The two-way streets run North-South or East-West dividing the city into regular blocks. Most street int...
分类:
其他好文 时间:
2014-11-14 19:47:01
阅读次数:
270
例一:快速排序#include int AdjustArray(int s[], int l, int r) //返回调整后基准数的位置 { int i = l, j = r; int x = s[l]; //s[l]即s[i]就是第一个坑 while (i = x)...
分类:
编程语言 时间:
2014-11-14 19:40:56
阅读次数:
237
2014-11-14 在WebService中定义方法,有一些注意的地方: (1) 方法上面需要增加[WebMethod] 属性,标志该方法是一个WebService方法; (2)方法的返回值可以为void、string、int、bool、DataSet等类型,不能为Dictionary等特殊...
分类:
Web程序 时间:
2014-11-14 19:39:41
阅读次数:
227
//5.生产者消费者问题#include #include #include #include #define MAX 50 #define BUFSIZE 10 //仓库的大小int buf[BUFSIZE]={0}; int in=0; int out=0; sem_t...
分类:
编程语言 时间:
2014-11-14 19:30:36
阅读次数:
205
原文: mysql支持的数据类型及其测试 1.基础知识
1.1如何来查看mysql的帮助手册
?int
Help float;
1.2创建表的规则
CREATE TABLE [IF NOT EXISTS] tbl_name(
字段名 字段类型 [完整性的约束条件]);
1.3如何向表中插入数据
IN...
分类:
数据库 时间:
2014-11-14 19:27:56
阅读次数:
354
原文: mysql基础之基本数据类型 列类型学习
mysql三大列类型
整型
Tinyint/smallint/mediumint/int/bigint(M)unsignedzerofill 字符串型
Char(M)
Varchar(M)
Text文本类型 日期时间类型
Date日期
Time时间
...
分类:
数据库 时间:
2014-11-14 19:26:10
阅读次数:
241
如前一篇博文所分析,我们可以使用广播的形式在快速按下两次音量下键的时候发出广播,以方便客户端进行捕捉。
具体实现方式如下:
/framework/base/policy/src/com/android/policy/impl/PhoneWindowManager.java
private long lastTime=0;
public int interce...
分类:
移动开发 时间:
2014-11-14 17:51:13
阅读次数:
296
描述输入一个百分制的成绩M,将其转换成对应的等级,具体转换规则如下:90~100为A;80~89为B;70~79为C;60~69为D;0~59为E;输入第一行是一个整数N,表示测试数据的组数(N 2 3 int main(){ 4 int T; 5 int n; 6 ch...
分类:
其他好文 时间:
2014-11-14 17:39:32
阅读次数:
166