树链剖分基础题
#include
#include
#include
using namespace std;
const int maxn = 10010;
struct edge
{
int v, next;
}e[maxn*2];
int first[maxn], cnt;
int top[maxn], dep[maxn], sz[maxn], f[maxn], son[maxn...
分类:
其他好文 时间:
2014-10-06 02:55:39
阅读次数:
179
package 经典;public class 四个线程 { private int j=10; /** * @param args */ public static void main(String[] args) { // TODO Aut...
分类:
编程语言 时间:
2014-10-06 02:18:09
阅读次数:
311
--函数声明create function myAdd(@a int, @b int)returns intas begindeclare @c intset @c = @a + @breturn @cend --函数调用declare @a1 intdeclare @b1 int declare ...
分类:
数据库 时间:
2014-10-06 02:00:09
阅读次数:
206
#includevoid han(int n,char a,char b,char c){ if(n==1) { printf("%c--%c\n",a,c); } else { han(n-1,a,c,b); printf("%c--%c\n",a,c); han(n-1,b,a,c);...
分类:
其他好文 时间:
2014-10-06 01:25:09
阅读次数:
242
CREATE TRIGGER GetCounton teachersafter insertasbegin declare @totalCount int--表变量里面总共的变量条数 declare @RowNo int--当前是多少行 declare @tempId int--保...
分类:
数据库 时间:
2014-10-06 01:04:59
阅读次数:
272
借口文件1:Bird.h#import @interface Bird : NSObject{@private int _weight; NSString *_name;}- (void)fly;@end实现文件1:Bird.m#import "Bird.h"@implementation Bird...
分类:
其他好文 时间:
2014-10-06 01:02:29
阅读次数:
299
class Solution {
public:
vector getRow(int rowIndex) {
vector result;
int i = 0;
int j = 0;
if(rowIndex < 0) {
return result;
}
result....
分类:
其他好文 时间:
2014-10-06 00:58:39
阅读次数:
220
题目链接http://acm.hdu.edu.cn/showproblem.php?pid=1022模拟栈:代码#includeint main(void){ int n,i,j,k,t,r[23],stack[13]; char si[13],so[13]; while(scan...
分类:
其他好文 时间:
2014-10-06 00:35:09
阅读次数:
223
一、类型转换 1、转换的类型 2、隐式转换 bool 和string 没有隐式转换,具有隐式转换的都列在下面的表格 、 记住一个规律,就是由精度低的类型转到精度高的类型是很容易的。 3、显式转换 (1)强制类型转换 double c=2.2;
int a = (int)c; 但是会有数据丢失的情况,...
分类:
其他好文 时间:
2014-10-05 23:43:59
阅读次数:
317
--定义存储过程create procedure GetOutInfo@className nvarchar(50),@Age int,@maxScore int output,@avrageScore int output,@stuCount int outputas beginselect * ...
分类:
数据库 时间:
2014-10-05 23:27:29
阅读次数:
294