treap: (Orz fhq 大神,我曾经以为我会了 treap ,就再也不会写 splay 了,然后我遇上了 lct ) 1 #include 2 const int sizeOfMemory=10000; 3 template inline void swap(type & x, type.....
分类:
其他好文 时间:
2014-08-09 21:10:49
阅读次数:
302
题意:给你n个时间发生的序号,问你现在又n个时间发生的序号与给定的时间相同的有几个。思路:知道位置后,求一次最长公共子序列。#include #include const int maxn = 109;int dp[maxn][maxn];int a[maxn];int b[maxn];inline...
分类:
其他好文 时间:
2014-08-09 11:18:17
阅读次数:
205
思路:与我发表的上一遍求和的思想一样 只是现在变成求最大值而已
AC代码:
#include
#include
#include
#include
#include
using namespace std;
inline int Max(int a, int b)
{
return a > b ? a : b;
}
const int MAXN = 200001; // 区间范围
str...
分类:
其他好文 时间:
2014-08-09 02:39:46
阅读次数:
251
根据CSS规范的规定,每一个网页元素都有一个display属性,用于确定该元素的类型,每一个元素都有默认的display属性值,比如div元素,它的默认display属性值为“block”,成为“块级”元素(block-level);而span元素的默认display属性值为“inline”,称.....
分类:
其他好文 时间:
2014-08-08 23:43:36
阅读次数:
291
这道题的思路还是比较好想的喵~首先令数组 C[k][num]表示 2 进制最后 k 位 2 #include 3 4 namespace IOspace 5 { 6 inline char getch() 7 { 8 register char ch; 9 ...
分类:
其他好文 时间:
2014-08-08 15:30:16
阅读次数:
300
PDE_DATA 的定义
Location:
/fs/proc/internal.h
static inline struct proc_dir_entry *PDE(const struct inode *inode)
{
return PROC_I(inode)->pde;
}
static inline void *__PDE_DATA(const struct inode...
分类:
其他好文 时间:
2014-08-08 02:00:25
阅读次数:
203
JavaScript 操作CSS关于CSS的介绍不是本文的内容范围,本文主要介绍如何使用JavaScript操作CSS。1. 使用JavaScript操作Inline Styles所有的文档元素都有style属性,我们可以通过直接操作style属性来修改相关元素的样式。需要注意的是style属性的值...
分类:
编程语言 时间:
2014-08-07 21:46:40
阅读次数:
826
一、static变量和static函数
static全局变量与普通的全局变量有什么区别?static局部变量和普通局部变量有什么区别?static函数与普通函数有什么区别?
答: 1) 全局变量(外部变量)的说明之前再冠以static 就构成了静态的全局变量。全局变量本身就是静态存储方式, 静态全局变量当然也是静态存储方式。 这两者在存储方式上并无不同。这两者的区别在于非静态全局变量的作...
分类:
编程语言 时间:
2014-08-07 19:07:40
阅读次数:
274
CSS: .checkbox { display: none; *display: inline-block; } .label:before { content: ""; ...
分类:
其他好文 时间:
2014-08-07 12:04:49
阅读次数:
190
下载、编译安装wgethttp://cn2.php.net/distributions/php-5.4.7.tar.gz
tarzvxfphp-5.4.7.tar.gz
cdphp-5.4.7
./configure--prefix=/usr/local/php--enable-fpm--with-mcrypt--enable-mbstring--disable-pdo--with-curl--disable-debug--disable-rpath--enable-inline-opt..
分类:
Web程序 时间:
2014-08-07 07:34:00
阅读次数:
271