1.?基础概念篇 1.1 介绍 ? HTTP是Hyper Text Transfer Protocol(超文本传输协议)的缩写。它的发展是万维网协会(World Wide Web Consortium)和Internet工作小组IETF(Internet Engineering Task Force)合作...
分类:
其他好文 时间:
2014-08-07 15:59:30
阅读次数:
568
//A组n人 B组m人
//最多有多少人匹配 每人只有匹配一次
# include
# include
# include
using namespace std;
int n,m,k;
int pp[1100][1100],map[1100],vis[1100];
int bfs(int x)//二分匹配模板
{
for(int i=1;i<=m;i++)//B组中的人来迎合匹配
{
...
分类:
其他好文 时间:
2014-08-07 13:25:10
阅读次数:
151
一个接收线程,用于接收任务放到任务列表创建N个工作线程,这些线程都在WAIT TASK,等待接收线程放到任务列表的任务。接收到任务后,对任务进行处理(执行SHELL等),并放到对应的队列中,通知发送进程发送。每次得到这个任务,记录端口号,便可以生成一个发送线程,因为处理完任务后,需要把结果返回回去,...
分类:
其他好文 时间:
2014-08-07 12:30:19
阅读次数:
181
GCD概念:Grand Central Dispatch1.queue 队列 dispatch queue 分发队列2.task 任务3.thread 线程task 是一个一个单独的任务(方法,函数,block)queue里存放的是一个或者多个taskthread 为了保证task能顺利执行,que...
分类:
移动开发 时间:
2014-08-07 12:10:30
阅读次数:
318
SudokuTime Limit:2000MSMemory Limit:65536KTotal Submissions:13723Accepted:6791Special JudgeDescriptionSudoku is a very simple task. A square table wit...
分类:
其他好文 时间:
2014-08-06 22:23:32
阅读次数:
285
Problem DescriptionToday the company has m tasks to complete. The ith task need xi minutes to complete. Meanwhile, this task has a difficulty level yi...
分类:
其他好文 时间:
2014-08-06 18:03:01
阅读次数:
329
由于项目需要,最近对storm进行了预研,安装与使用方式网上有很多示例,在此记录一下,备忘。 一、storm简介 ????Storm的术语包括Stream、Spout、Bolt、Task、Worker、Stream Grouping和Topology。S...
分类:
其他好文 时间:
2014-08-06 12:04:11
阅读次数:
409
Description
In a few months the European Currency Union will become a reality. However, to join the club, the Maastricht criteria must be fulfilled, and this is not a trivial task for the countries...
分类:
其他好文 时间:
2014-08-06 10:38:11
阅读次数:
270
之前先在initializers 文件夹下建立了一个task.rb ,rails服务启动的时候执行,本地没问题,可是服务器上启动了3个进程,会执行3遍,解决方法是 把task.rb 放到 script/文件夹下,然后在项目根目录执行 ruby script/task.rb production &。...
分类:
其他好文 时间:
2014-08-06 01:21:30
阅读次数:
230
java定时器的使用定时器类Timer在java.util包中。使用时,先实例化,然后使用实例的schedule(TimerTask task, long delay)方法,设定指定的任务task在指定的延迟delay后运行。定时器任务类TimerTask是抽象类,继承并重写其run()方法,可实....
分类:
编程语言 时间:
2014-08-05 19:08:59
阅读次数:
225