很裸的最短路,不过节点数和边数都是1e6,直接dij肯定是不行了,稀疏图用heap优化一下就好o(╯□╰)o注意STL里面的优先队列是优先级大的(值大的)在前面的,一开始没注意WA了好几发,哎,太粗心了#include #include #include #include #include #inc...
分类:
其他好文 时间:
2014-07-22 22:54:33
阅读次数:
212
修改其值的最快方式:创建:Mutable StorageTo create mutable storage for a buffer object, you use this API:voidglBufferData?(enum target, sizeiptr size, const void *...
分类:
其他好文 时间:
2014-07-19 21:10:18
阅读次数:
425
简介什么是 Google Protocol Buffer? 假如您在网上搜索,应该会得到类似这样的文字介绍:Google Protocol Buffer( 简称 Protobuf) 是 Google 公司内部的混合语言数据标准,目前已经正在使用的有超过 48,162 种报文格式定义和超过 12,18...
分类:
其他好文 时间:
2014-07-16 19:19:13
阅读次数:
221
并不是用了绑定变量就一定都会游标共享,下面我们介绍的就是一种例子。BIND_MISMATCH导致VERSION COUNT过多的原因解释:This is due to the bind buffer mismatch of the current child cursor. If oracle is...
分类:
其他好文 时间:
2014-07-16 18:16:45
阅读次数:
295
Java内存溢出详解一、常见的Java内存溢出有以下三种:1.java.lang.OutOfMemoryError: Java heap space----JVM Heap(堆)溢出JVM在启动的时候会自动设置JVM Heap的值,其初始空间(即-Xms)是物理内存的1/64,最大空间(-Xmx)不...
分类:
编程语言 时间:
2014-07-16 17:01:43
阅读次数:
304
Python最基本的数据结构是序列(sequence),序列中的每个元素被分以以0开头的唯一的一个id号。 Python中有6种内建的序列:列表,元组,字符串,Unicode字符串,buffer对象和xrange对象。 下面是一个使用列表的例子: >>> edward = ['Edward Gum....
分类:
编程语言 时间:
2014-07-16 15:49:59
阅读次数:
297
Server:import io.netty.buffer.ByteBuf;import io.netty.channel.ChannelHandlerContext;import io.netty.channel.ChannelInboundHandlerAdapter;import io.net...
分类:
Web程序 时间:
2014-07-16 00:59:48
阅读次数:
495
http://www.opengl.org/registry/specs/NV/shader_buffer_load.txtOverview At a very coarse level, GL has evolved in a way that allows applications...
分类:
其他好文 时间:
2014-07-15 23:01:19
阅读次数:
431
public static String toHexString2(byte[] b) {
StringBuffer buffer = new StringBuffer();
for (int i = 0; i < b.length; ++i) {
buffer.append(toHexString2(b[i]));
}
return buffer.toString();
...
分类:
编程语言 时间:
2014-07-14 18:22:33
阅读次数:
244
#!/usr/bin/pythonimportredefbuffer_line():buf=open("/etc/sae/buffer_1").read()ifnotbuf:return0else:returnint(re.findall("^\d*",buf)[0])defset_last_pos(pos):open("/etc/sae/buffer_1","w").write(str(pos))if__name__==‘__main__‘:appname={}fh=open("/data0/l7.acce..
分类:
编程语言 时间:
2014-07-14 16:41:57
阅读次数:
319