Problem Description
There are n types of cells in the lab, numbered from 1 to n. These cells are put in a queue, the i-th cell belongs to type i. Each time I can use mitogen to double the cells in ...
分类:
其他好文 时间:
2014-08-26 15:38:46
阅读次数:
270
c:\program files\microsoft visual studio 10.0\vc\include\xmemory(48): error C2558: class“CDataRecv”: 没有可用的复制构造函数或复制构造函数声明为“explicit”
1> c:\program files\microsoft visual studio 10.0\vc\include\xmemory(197): 参见对正在编译的函数 模板 实例化“void std::_Construct<C...
分类:
其他好文 时间:
2014-08-26 11:47:26
阅读次数:
230
=====================================Document.csusingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespaceConsoleApplication2
{
publicclassDocument//文本类
{
//标题
publicstringTitle{get;privates..
分类:
其他好文 时间:
2014-08-26 02:57:05
阅读次数:
207
学习云风的skynet源码,简单记录下。
void
skynet_globalmq_push(struct message_queue * queue) {
struct global_queue *q= Q;
uint32_t tail = GP(__sync_fetch_and_add(&q->tail,1));
// only one thread can set the sl...
分类:
Web程序 时间:
2014-08-25 21:11:04
阅读次数:
499
Problem Description
There are n types of cells in the lab, numbered from 1 to n. These cells are put in a queue, the i-th cell belongs to type i. Each time I can use mitogen to double the cells in ...
分类:
其他好文 时间:
2014-08-25 01:13:03
阅读次数:
321
Problem Description
There are n types of cells in the lab, numbered from 1 to n. These cells are put in a queue, the i-th cell belongs to type i. Each time I can use mitogen to double the cells in ...
分类:
其他好文 时间:
2014-08-25 01:12:13
阅读次数:
273
WINDOWS环境下的解决方法: 1: 下载sqlite3数据库工具,放置于SVN的同级目录 2: CMD路径转移到Sqlite3目录 3: 残留操作选择:sqlite3 .svn/wc.db "select * from work_queue" 4: 残留操作删除:sqlite3 .svn...
分类:
数据库 时间:
2014-08-22 23:50:49
阅读次数:
461
System V Message queue 是一种进程通信(IPC)的方式,方便实现生产者-消费者模型,单个或多个生产者向队列中写入消息,多个生产者再从队列中获取消息进行处理。
项目地址:https://github.com/huyanping/Zebra-PHP-Framework
该Wrapper支持:
进程通信
设置最大队列容量(字节单位)
获取当前队列数量
修改队列部分属性...
分类:
Web程序 时间:
2014-08-22 17:56:59
阅读次数:
180
java集合大致上可分为:set,list,map三种体系,其中set代表无序不可重复的集合,list代表有序可重复的集合,map代表具有映射关系的集合。后来又增加一种Queue体系集合,代表一种队列的集合实现。set和list接口都实现了collection接口使用Iterator接口遍历集合元素...
分类:
编程语言 时间:
2014-08-22 16:10:19
阅读次数:
257
解题报告
题目传送门
题意:
先输入n,m
接下来m行,每行输入A,B,C
输入A B C,表示孩子B最多比孩子A多C块蛋糕,问孩子1与孩子N最多相差多少块蛋糕!
思路:
求解b-a
源点为1
spfa+queue超时,spfa+queue+slf还超时,用stack却过了。
#include
#include
#include
#include
#in...
分类:
其他好文 时间:
2014-08-22 14:29:48
阅读次数:
178