1 //Accepted 2692 KB 1282 ms 2 //差分约束 -->最短路 3 //TLE到死,加了输入挂,手写queue 4 #include 5 #include 6 #include 7 #include 8 #include 9 #in...
分类:
其他好文 时间:
2014-10-18 11:05:50
阅读次数:
208
Implement strStr().Returns a pointer to the first occurrence of needle in haystack, ornullif needle is not part of haystack.Solution: 1 public class S...
分类:
其他好文 时间:
2014-10-18 08:35:09
阅读次数:
162
基本C/C++、STL(vector、set、map、queue、string、algorithm)枚举、贪心、递归、分治、递推、模拟构造、位运算、常数优化数据结构队列、堆、栈、链表排序(插入、冒泡、快速、归并、堆、桶、基数)二分查找、散列表、并查集、哈夫曼树排序二叉树、左偏树、平衡树(Splay/...
分类:
编程语言 时间:
2014-10-18 00:34:46
阅读次数:
340
1,先看看官方的定义吧:
ZooKeeper is a distributed, open-source coordination service for distributed applications. It exposes a simple set of primitives that distributed applications can build upon to implement...
分类:
其他好文 时间:
2014-10-17 21:58:54
阅读次数:
242
转:http://www.blogjava.net/xylz/archive/2010/07/01/324988.html从相对简单的Atomic入手(java.util.concurrent是基于Queue的并发包,而Queue,很多情况下使用到了Atomic操作,因此首先从这里开始)。很多情况下...
分类:
编程语言 时间:
2014-10-17 18:18:38
阅读次数:
223
题意:自行脑补
思路:网络流,建模显然,若满流则可以
代码:#include
#include
#include
#include
#include
#include
using namespace std;
#define INF 0x3f3f3f3f
queue q;
struct Solver {
int head[200], next[6010], end[...
分类:
其他好文 时间:
2014-10-17 12:08:28
阅读次数:
169
Linux系统中的进程通信方式主要以下几种:同一主机上的进程通信方式* UNIX进程间通信方式: 包括管道(PIPE), 有名管道(FIFO), 和信号(Signal)* System V进程通信方式:包括信号量(Semaphore), 消息队列(Message Queue), 和共享内存(Shar...
分类:
编程语言 时间:
2014-10-17 02:11:33
阅读次数:
182
目录一:MSMQ的一些理论上的知识二:队列类型(Queue Type)三:安装消息队列四:在C#中Messagequeue class五:MSMQ-发送消息到远程专用队列六:例子一、在学习Messagequeue 类之前,首先介绍一下MSMQ的一些理论上的知识 MSMQ(MicroSoft Mess...
分类:
Web程序 时间:
2014-10-17 02:01:23
阅读次数:
441
Description
On the beaming day of 60th anniversary of NJUST, as a military college which was Second Artillery Academy of Harbin Military Engineering Institute before, queue phalanx is a spe...
分类:
其他好文 时间:
2014-10-16 19:41:32
阅读次数:
236
问题的关键是:在删除元素之前,将当前迭代器保存下来。当然,这里仅支持list,因为list的链式的删除一个元素,前面的指针指向下一个元素,vector和queue就不好办了,它们或者是线性的或者是半线性半链式,迭代器会失效
#include
#include
using namespace std;
int main()
{
list l;
for(int i=1;i<=100;i++)
...
分类:
其他好文 时间:
2014-10-16 16:57:55
阅读次数:
148