先上题目:321. The Spy NetworkTime limit per test: 0.5 second(s)Memory limit: 65536 kilobytesinput: standardoutput: standardThe network of spies consists o...
分类:
Web程序 时间:
2014-08-26 00:14:55
阅读次数:
315
摘要:一个普通应用,大到微信, 小到豆瓣FM,必不可少的都包括四部分:Network、Logic、Data、View(NLDV)。如何把他们组合起来,结构清晰、又协作便利,是前端主程的基本修养。本文用通俗易懂的语言,界定了这四个模块的职能范围,同时提供了一种简单易用的组织方式。知者可互动,不知者可参...
分类:
其他好文 时间:
2014-08-26 00:12:25
阅读次数:
414
题目地址:POJ 1236
这个题的大意是求最少往多少点发送消息可以使任意一个点都能收到消息和最少增加多少条边可以使图为连通图。对于第一个问题,可以求入度为0的强连通块的块数,因为只有入度为0的强连通块是无法从外界接受信息的,而只要有一个入度的话,那整个连通块就都可以接收到信息。第二个问题则是求入度为0的强连通块与出度为0的强连通块的个数的最大值。
代码如下:
#include
#incl...
分类:
Web程序 时间:
2014-08-25 21:17:24
阅读次数:
287
Network of SchoolsTime Limit: 1000msMemory Limit: 10000KBThis problem will be judged onPKU. Original ID:123664-bit integer IO format:%lld Java class n...
分类:
Web程序 时间:
2014-08-25 19:08:04
阅读次数:
201
MINA、Netty、Twisted为什么放在一起学习?首先,不妨先看一下他们官方网站对其的介绍:MINA:Apache MINA is a network application framework which helps users develop high performance and hi...
分类:
Web程序 时间:
2014-08-25 16:21:44
阅读次数:
289
我又思考人生了T_T,nd的数组开小了,一直wa,调了一个小时才发现啊!!!!!我一直以为我的isap错了T_T,可是完全没错啊!!!!这题其实第一个问很简单,跑一次最大流即可。第二个问就是在跑完最大流的残量网络上每条边都扩充容量为oo,费用为边的费用,然后设个超级源连一条容量为k的边到点1,再跑一...
分类:
Web程序 时间:
2014-08-25 13:20:44
阅读次数:
234
ti8168 原始文件系统进去后没有网络eth0接口,为了有该接口需要配置/etc/network/interfaces 文件
具体配置如下(红色要配置)
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
ifac...
分类:
其他好文 时间:
2014-08-25 11:50:04
阅读次数:
249
1)修改ifcfg-eth0 配置文件路径:/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0ONBOOT=yes //这里设置为yesBOOTPROTO=static //这里为staticIPADDR=192.168.0.3//局域网内的ip...
分类:
系统相关 时间:
2014-08-25 09:57:14
阅读次数:
188
AndroidAsync is a low level network protocol library. If you are looking for an easy to use, higher level, Android aware, http request library, check out?Ion?(it is built on top of AndroidAsync)....
分类:
移动开发 时间:
2014-08-24 20:57:53
阅读次数:
358
这题感觉和POJ 1988 Cube Stacking 很像,在路径压缩的同时递归出来的时候跟新distant数组 1 //#define LOCAL 2 #include 3 #include 4 using namespace std; 5 6 const int maxn = 20000...
分类:
Web程序 时间:
2014-08-24 19:22:02
阅读次数:
211