04 2017 档案

摘要:用lucene3实现搜索多字段并排序功能(设置权重) 阅读全文
posted @ 2017-04-27 17:44 shulin15 阅读(128) 评论(0) 推荐(0) 编辑
摘要:Lucene BooleanQuery中的Occur.MUST与Occur.Should 阅读全文
posted @ 2017-04-27 17:38 shulin15 阅读(190) 评论(0) 推荐(0) 编辑
摘要:http://codeforces.com/contest/798/problem/D http://blog.csdn.net/yasola/article/details/70477816 对于二维的贪心我们可以先让它变成其中一维有序,这样只需要重点考虑另一维,就会简单很多。 首先,对于题目要求 阅读全文
posted @ 2017-04-24 21:13 shulin15 阅读(223) 评论(0) 推荐(0) 编辑
摘要:C. Mike and gcd problem http://www.cnblogs.com/BBBob/p/6746721.html 1 #include<iostream> 2 #include<cstdio> 3 #include<string> 4 #include<cstring> 5 # 阅读全文
posted @ 2017-04-24 20:12 shulin15 阅读(144) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/AOQNRMGYXLMV/p/4934747.html 1 #include<iostream> 2 #include<cstdio> 3 #include<algorithm> 4 5 using namespace std; 6 const int 阅读全文
posted @ 2017-04-24 12:33 shulin15 阅读(143) 评论(0) 推荐(0) 编辑
摘要:E - Counting Cliques http://blog.csdn.net/eventqueue/article/details/52973747 http://blog.csdn.net/yuanjunlai141/article/details/52972715 1 #include<i 阅读全文
posted @ 2017-04-23 18:39 shulin15 阅读(273) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/pony1993/archive/2012/07/25/2607738.html 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 5 using namespace std 阅读全文
posted @ 2017-04-20 21:49 shulin15 阅读(258) 评论(0) 推荐(0) 编辑
摘要:http://www.ruanyifeng.com/blog/2015/06/poisson-distribution.html 阅读全文
posted @ 2017-04-20 13:45 shulin15 阅读(611) 评论(0) 推荐(0) 编辑
摘要:表t1: 表t2: 自然联接: 全外联接: 左外联接: 右外联接: 阅读全文
posted @ 2017-04-17 21:37 shulin15 阅读(243) 评论(0) 推荐(0) 编辑
摘要:https://vjudge.net/contest/66569#problem/F 题意:判断图中是否存在负权回路 首先,介绍图的邻接表存储方式 数据结构:图的存储结构之邻接表 邻接表建图,类似于头插法建单链表 head[x]:以x为源点的第一条边,初始值为-1. struct edge { in 阅读全文
posted @ 2017-04-07 21:44 shulin15 阅读(247) 评论(0) 推荐(0) 编辑
摘要:打开编译选项 阅读全文
posted @ 2017-04-06 16:13 shulin15 阅读(166) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/peixuan197/article/details/48084843 srand(time(0))以当前时间为种子 要取得[a,b)的随机整数,使用(rand() % (b-a))+ a (结果值含a不含b)。 要取得[a,b]的随机整数,使用(rand( 阅读全文
posted @ 2017-04-06 16:05 shulin15 阅读(160) 评论(0) 推荐(0) 编辑
摘要:https://vjudge.net/contest/66989#problem/C 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<string> 5 #include<algorithm> 6 #inc 阅读全文
posted @ 2017-04-06 11:06 shulin15 阅读(189) 评论(0) 推荐(0) 编辑
摘要:https://vjudge.net/contest/66989#overview 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<string> 5 #include<algorithm> 6 #incl 阅读全文
posted @ 2017-04-06 10:34 shulin15 阅读(253) 评论(0) 推荐(0) 编辑
摘要:https://vjudge.net/contest/66989#problem/A 单点修改,区间查询 方法一:线段树 http://www.cnblogs.com/kuangbin/archive/2011/08/15/2139834.html 1 #include<iostream> 2 #i 阅读全文
posted @ 2017-04-05 22:42 shulin15 阅读(246) 评论(0) 推荐(0) 编辑
摘要:https://vjudge.net/contest/66569#problem/D trick:1~N各点到X可以通过转置变为X到1~N各点 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<string> 阅读全文
posted @ 2017-04-05 14:47 shulin15 阅读(166) 评论(0) 推荐(0) 编辑
摘要:https://vjudge.net/contest/66569#problem/B 类试题:noip2013 货物运输 POJ 1797 Heavy Transportation 方法一:Dijkstra变形 http://blog.csdn.net/u013446688/article/deta 阅读全文
posted @ 2017-04-04 19:58 shulin15 阅读(252) 评论(0) 推荐(0) 编辑
摘要:https://vjudge.net/contest/66569#problem/A http://blog.csdn.net/wangjian8006/article/details/7871889 邻接矩阵实现的单源最短路 1 #include<iostream> 2 #include<cstd 阅读全文
posted @ 2017-04-03 23:26 shulin15 阅读(208) 评论(0) 推荐(0) 编辑
摘要:https://vjudge.net/contest/68966#problem/G 正解一: http://www.clanfei.com/2012/04/646.html 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 阅读全文
posted @ 2017-04-03 21:41 shulin15 阅读(306) 评论(0) 推荐(0) 编辑
摘要:https://vjudge.net/contest/68966#problem/F http://blog.csdn.net/libin56842/article/details/9048173 1 #include<iostream> 2 #include<cstdio> 3 #include< 阅读全文
posted @ 2017-04-03 09:37 shulin15 阅读(235) 评论(0) 推荐(0) 编辑
摘要:https://vjudge.net/contest/68966#problem/E http://blog.csdn.net/to_be_better/article/details/50563344 1 #include<iostream> 2 #include<cstdio> 3 #inclu 阅读全文
posted @ 2017-04-03 08:23 shulin15 阅读(215) 评论(0) 推荐(0) 编辑
摘要:https://vjudge.net/contest/68966#problem/D http://blog.csdn.net/u010489389/article/details/19218795 1 #include<iostream> 2 #include<cstdio> 3 #include 阅读全文
posted @ 2017-04-02 22:33 shulin15 阅读(343) 评论(0) 推荐(0) 编辑
摘要:https://vjudge.net/contest/68966#problem/C 【参考】http://blog.csdn.net/qinmusiyan/article/details/7986263 【题意】:多组测试数据 每组测试数据给出n个砖块的长、宽、高,每种砖块有无穷多个,可以有三种不 阅读全文
posted @ 2017-04-02 18:42 shulin15 阅读(225) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/joeylee97/p/6616039.html 1 #include<iostream> 2 #include<cstdio> 3 #include<string> 4 #include<cstring> 5 #include<cmath> 6 #in 阅读全文
posted @ 2017-04-02 10:42 shulin15 阅读(174) 评论(0) 推荐(0) 编辑
摘要:A - Max Sum Plus Plus 1 https://vjudge.net/contest/68966#problem/A 2 3 http://www.cnblogs.com/kuangbin/archive/2011/08/04/2127085.html 4 5 /* 6 状态dp[i 阅读全文
posted @ 2017-04-02 10:17 shulin15 阅读(307) 评论(0) 推荐(0) 编辑
摘要:Escape 参考:http://blog.csdn.net/libin56842/article/details/41909459 【题意】: 一个人从(0,0)跑到(n,m),只有k点能量,一秒消耗一点,在图中有k个炮塔,给出炮塔的射击方向c,射击间隔t,子弹速度v,坐标x,y 问这个人能不能安 阅读全文
posted @ 2017-04-01 13:28 shulin15 阅读(469) 评论(0) 推荐(0) 编辑