题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1166思路:线段树入门题。代码: #include #include #define MAXSIZE 500000using namespace std;struct node{ int l,r;...
分类:
其他好文 时间:
2014-08-30 16:19:19
阅读次数:
211
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1754思路:线段树入门题目..刚学的,拿来练手。可以当作区间更新点的模板用,另外得注意,这个题用cin必定超时~.....代码: #include #define MAXSIZE 200001using....
分类:
其他好文 时间:
2014-08-30 15:07:29
阅读次数:
246
1.创建表空间create tablespace NW_DATAlogging datafile 'F:\oracle\product\10.2.0\oradata\nwdb\NW_DATA.dbf' size 64m autoextend on next 64m maxsize 20480m e....
分类:
其他好文 时间:
2014-08-29 17:48:08
阅读次数:
326
创建临时表空间CREATE TEMPORARY TABLESPACE test_tempTEMPFILE 'C:\oracle\product\10.1.0\oradata\orcl\test_temp01.dbf'SIZE 32MAUTOEXTEND ONNEXT 32M MAXSIZE 2048...
分类:
数据库 时间:
2014-08-25 11:25:14
阅读次数:
252
冒泡排序算法是思路最简单、最直接的排序方法之一。每遍历一遍,则将最大(或者最小)的一个数冒泡出来。预先定义的排序类型。由于只是为了验证排序方法是否正确,所以此处只是简单的对10个元素进行排序检测。如下所示:#define MAXSIZE 10typedef struct { int r[MAXSI....
分类:
其他好文 时间:
2014-08-18 20:27:32
阅读次数:
210
#include#include#includeusing namespace std;const int maxsize=100;void getnext(string t,int next[]){ int j,k; j=0; k=-1; next[0]=-1; while(j=int (t.le...
分类:
其他好文 时间:
2014-08-13 14:27:26
阅读次数:
227
//单链表的合并
//链表合并
//两个链表必须是有序的
#define Maxsize 5
typedef int elemtype;
typedef struct linklist
{
elemtype data;
struct linklist *next;
}Linklist;
//建立链表1
Linklist *CreateList1 ()
...
分类:
其他好文 时间:
2014-08-11 21:25:52
阅读次数:
346
#include "iostream.h"
#define MAXSIZE 10
typedef struct queue{
int q[MAXSIZE] ;
int front;
int rear;
int n;//用于引用计数
};
void initQueue(queue* qq);
void initQueue(queue* qq) //此处必须是引用...
分类:
编程语言 时间:
2014-08-11 12:02:52
阅读次数:
259
该模板:最多支持500位数,重载了+、-、*、/、^、%、>、=、>>、
#include
#include
#include
#include
#include
#include
using namespace std;
#define MAXN 9999
#define MAXSIZE 10
#define DLEN 4
class BigNum
{
private:
in...
分类:
其他好文 时间:
2014-08-11 08:28:41
阅读次数:
299
php Action server端maxSize = 204800; //设置上传文件类型 $upload->allowExts = array('jpg', 'gif', 'png', 'jpeg'); //设置附件上传文件夹 ...
分类:
Web程序 时间:
2014-08-10 15:17:10
阅读次数:
336