declare v_rowcount integer; v_rowcount1 integer; v_rowcount2 integer;begin select count(*) into v_rowcount from dual where exists( select * from col w...
分类:
数据库 时间:
2014-09-16 10:23:20
阅读次数:
380
很早之前用树链剖分写过,但是代码太长太难写,省选现场就写错了。 1 #include 2 #include 3 #include 4 using namespace std; 5 #define lson rt>1,ans=0; 26 if(ql>1,ans=-2147483647...
分类:
其他好文 时间:
2014-09-15 19:26:59
阅读次数:
214
转载请标明出处,原文地址:http://blog.csdn.net/hackbuteer1/article/details/7561235
智能指针(smart pointer)是存储指向动态分配(堆)对象指针的类,用于生存期控制,能够确保自动正确的销毁动态分配的对象,防止内存泄露。它的一种通用实现技术是使用引用计数(reference count)。智能指针类将一个计数器与类指向的对...
分类:
编程语言 时间:
2014-09-15 17:49:29
阅读次数:
254
Problem Description
It is well known that AekdyCoin is good at string problems as well as number theory problems. When given a string s, we can write down all the non-empty prefixes of this string. F...
分类:
其他好文 时间:
2014-09-15 17:47:39
阅读次数:
183
最近的项目,要用到python,想想自己以前用过的各种语言,连一个简单的for循环,写起来都个不相同呢。虽然怎么写都行,只是习惯问题,但是还是尊重一下各种语言本身。假如存在数组 array,在以下的语言中,循环应该这样写:C: for(int i = 0; i count(); ++i) { ...
分类:
其他好文 时间:
2014-09-15 17:38:29
阅读次数:
142
最近被问到一个函数count1、count("123456") 对应的输出是什么?2、count(null) 对应的输出是什么?以前没有认真的考虑,只是心里有一个印象那就是count()函数是计算php数组的个数的。后来下来仔细看了看手册,原来发现:1、count函数是统计数组里所有元素的个数或者对...
分类:
Web程序 时间:
2014-09-15 14:08:38
阅读次数:
731
1SqlIO优化set statistics io on--sqlset statistics io off2Sql占用CPU时间select c.total_worker_time, c.last_execution_time,c.execution_count,c.total_logical_r...
分类:
数据库 时间:
2014-09-15 12:53:18
阅读次数:
186
#include<stdio.h>
#include<stdlib.h>
typedefenumBOOL//C语言中不含有BOOL类型的数据,需要自己定义,C++中含有!
{
FALSE,
TRUE
}BOOL;
intgetWorldNumber(constchar*str)
{
intcount=0;
BOOLflag=TRUE;
while(*str!=‘\0‘)
{
if((*str>=‘A‘&&*str&..
分类:
其他好文 时间:
2014-09-15 11:25:19
阅读次数:
141
一般情况下,Select Count (*)和Select Count(1)两着返回结果是一样的假如表沒有主键(Primary key),那么count(1)比count(*)快,如果有主键的話,那主键作为count的条件时候count(主键)最快如果你的表只有一个字段的话那count(*)就是最快...
分类:
其他好文 时间:
2014-09-15 09:59:28
阅读次数:
179
Problem Description
In our daily life we often use 233 to express our feelings. Actually, we may say 2333, 23333, or 233333 ... in the same meaning. And here is the question: Suppose we have a matrix...
分类:
其他好文 时间:
2014-09-14 23:42:47
阅读次数:
342