Description
Edward has a tree with n vertices conveniently labeled with 1,2,…,n.
Edward finds a pair of paths on the tree which share no more than k common vertices. Now Edward is interested in th...
分类:
其他好文 时间:
2016-05-12 15:03:33
阅读次数:
200
创建,插入,更新和删除:使用executeUpdate方法,而查询则用executeQuery
1.实例化FMDatabase
//paths: ios下Document路径,Document为ios中可读写的文件夹
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUser...
分类:
数据库 时间:
2016-05-12 15:00:05
阅读次数:
272
思路:构造,显然是一个蝴蝶形状的图
#include
using namespace std;
int main()
{
int n,k,a,b,c,d;
vectorg;
scanf("%d%d",&n,&k);
scanf("%d%d%d%d",&a,&b,&c,&d);
if(n==4)
{
puts("-1");
return 0;
}
if (k<=n...
分类:
其他好文 时间:
2016-05-12 14:38:18
阅读次数:
182
一、DOM树状解析
一个个节点解析
GData的抓准备工作
1.导入动态库: libxml2.dylib
2.在buid setting
里面搜索 header search paths ,添加//usr/include/libxm2
3.在buid setting
里面搜索 other linker flags ,添加 -lxml2
...
分类:
其他好文 时间:
2016-05-12 13:45:07
阅读次数:
166
第一步:引入动态库
第二步:拖入第三方文件
根据文件的的要求在工程中添加相应的字段// libxml includes require that the target Header Search Paths contain
//
// /usr/include/libxml2
//
// and Other Linker Flags contain
//
// -lxml2
这...
分类:
移动开发 时间:
2016-05-12 12:50:39
阅读次数:
157
Mac系统的环境变量,加载顺序为: /etc/profile /etc/paths ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc /etc/profile和/etc/paths是系统级别的,系统启动就会加载,后面几个是当前用户级的环境变量。后面 ...
分类:
系统相关 时间:
2016-05-11 01:14:30
阅读次数:
375
data-main定义入口文件,即加载完该文件后会立即加载的文件reqirejs.config:为模块定义别名;requirejs.config({paths:{jquery:'jquery-1.11.3.min'}})requirejs:引入写好的模块;requirejs(['jquery'],f ...
分类:
Web程序 时间:
2016-05-08 15:02:55
阅读次数:
136