# include
# include
using namespace std;
int flag,t,n,a[10010],cot[10010],vis[100010];
void dfs(int x,int sum,int count)
{
int i;
if(sum>t)
return ;
else if(sum==t)
{
for(i=0;i<count;i++)...
分类:
其他好文 时间:
2014-07-23 21:04:53
阅读次数:
211
case:下面的一条sql语句,导致mysql实例内存暴涨: select * from tables where table_name not in(select table_name from partitions group by table_name having count(*)>1 )....
分类:
数据库 时间:
2014-07-23 20:46:05
阅读次数:
332
-webkit-animation:仍旧是一个复合属性,-webkit-animation: name duration timing-function delay iteration_count direction;包括以下几个属性(1) -webkit-animation-name 这个属性的....
分类:
Web程序 时间:
2014-07-23 14:51:26
阅读次数:
276
Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the orig...
分类:
其他好文 时间:
2014-07-23 12:36:06
阅读次数:
209
常用的分页存储 DECLARE @SQL NVARCHAR(2000) SET @SQL = 'SELECT @TotalCount=COUNT(1) FROM #temptable' + @Condition EXEC sp_executesql @SQL, N'@TotalCo...
分类:
数据库 时间:
2014-07-23 12:34:16
阅读次数:
367
//自定义的缓冲区 import java.io.*; class MyBufferedInputStream{ private byte[] buf = new byte[1024]; private InputStream in; private int pos = 0, count = 0; ...
分类:
其他好文 时间:
2014-07-23 12:16:26
阅读次数:
174
web.py1.安装:wgethttp://webpy.org/static/web.py-0.37.tar.gztarxvfzweb.py-0.37.tar.gzcdweb.py-0.37sudopythonsetup.pyinstall2.需求:先说下需求,http://10.75.7.237:8080/?ipaddress=10.75.7.29&count=100,最终得到这个ip的日志的前100行3.讲解:#!/usr/bin/pytho..
分类:
编程语言 时间:
2014-07-23 00:23:18
阅读次数:
242
如何实现商品列表页属性筛选区品牌筛选以LOGO形式展示,最模板总结ecshop/'>ecshop教程入下:1、修改 category.php 文件,将(大概215行)$sql = "SELECT b.brand_id,b.brand_logo, b.brand_name, COUNT(*) AS g...
分类:
其他好文 时间:
2014-07-22 22:52:32
阅读次数:
161
nginx的代码非常的优秀,之前已经介绍了sendfile的使用来实现“内存零拷贝”,今天我又理解了一下writev函数的使用,以nginx-1.6.0为例,在src/os/unix/ngx_writev_chain.c的113行,如下图:可以man2writev看下函数的概念(与writev相对应的还有一个readv)writev是读取多个不..
分类:
其他好文 时间:
2014-07-22 18:31:21
阅读次数:
313
nginx的代码非常的优秀,之前已经介绍了sendfile的使用来实现“内存零拷贝”,今天我又理解了一下writev函数的使用,以nginx-1.6.0为例,在src/os/unix/ngx_writev_chain.c的113行,如下图:可以man2writev看下函数的概念(与writev相对应的还有一个readv)writev是读取多个不..
分类:
其他好文 时间:
2014-07-22 18:31:12
阅读次数:
267