After Farmer John realized that Bessie had installed a "tree-shaped" network among his N (1 <= N <= 10,000) barns at an incredible cost, he sued Bessi ...
分类:
其他好文 时间:
2018-07-21 14:55:42
阅读次数:
122
【题目链接】 http://codeforces.com/contest/451/problem/A 【算法】 若n和m中的最小值是奇数,则先手胜,否则后手胜 【代码】 ...
分类:
其他好文 时间:
2018-07-11 21:55:54
阅读次数:
186
Pick-up sticks Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 14568 Accepted: 5510 Description Stan has n sticks of various length. He thr ...
分类:
其他好文 时间:
2018-07-11 14:59:37
阅读次数:
163
Sticks bzoj-2529 Poi-2011 题目大意:给你n根木棒,每种木棒有长度和颜色,颜色共有k种,求满足条件的3根木棒使得这3根木棒颜色互不相同且可以围成三角形。 注释:$1\le n \le 10^6$,$1\le k\le 50$。 想法:我们这么想:假设当前木棍是满足题意的三根木 ...
分类:
其他好文 时间:
2018-07-07 23:56:51
阅读次数:
176
IssueDescription问题描述Customerconfigureradiusservice.Afteruplinkconnecttoradiusserverisdown,theyfoundoneissue.Thereisalocaluserondevice,Whentheylogindeviceusingthatuser,theywillbecutoffbyAAAandgivebelow
分类:
其他好文 时间:
2018-07-06 19:38:28
阅读次数:
272
【题目链接】 http://poj.org/problem?id=1011 【算法】 深搜剪枝 首先我们枚举木棍的长度i,那么就有s/i根木棍,其中s为木棍长度的总和,朴素的做法就是对每种长度进行搜索,然而这样是会超时的,考虑优化 : 优化1 : 优化搜索顺序,将这些木棍的长度从大到小排序,搜索时按 ...
分类:
其他好文 时间:
2018-07-03 16:44:49
阅读次数:
162
博客地址:http://www.moonxy.com 一、前言 Lucene 是 apache 软件基金会的一个子项目,由 Doug Cutting 开发,是一个开放源代码的全文检索引擎工具包,但它不是一个完整的全文检索引擎,而是一个全文检索引擎的库,提供了完整的查询引擎和索引引擎,部分文本分析引擎 ...
分类:
Web程序 时间:
2018-06-17 23:24:36
阅读次数:
350
Cutting an integer means to cut a K digits long integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 1673 ...
分类:
其他好文 时间:
2018-06-09 23:17:22
阅读次数:
212
Problem description In the evening, after the contest Ilya was bored, and he really felt like maximizing. He remembered that he had a set of n sticks ...
分类:
其他好文 时间:
2018-06-08 22:05:20
阅读次数:
163
yy or Y to copy the line or dd to delete (cutting) the line then p to paste the copied or deleted text after the current line or P to paste the copied ...
分类:
系统相关 时间:
2018-06-06 18:26:08
阅读次数:
195