3312: [Usaco2013 Nov]No Change Description Farmer John is at the market to purchase supplies for his farm. He has in his pocket K coins (1 <= K <= 16) ...
分类:
其他好文 时间:
2016-07-01 11:34:14
阅读次数:
215
输出函数: 无需引入函数库,无须使用“;”作为语句结尾,也无须写跟其它语言一样的main()函数,Swift中,全局区的代码就是程序入口。You don’t need to import a separate library for functionality like input/output o ...
分类:
编程语言 时间:
2016-06-30 12:20:28
阅读次数:
209
PIGS Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 19711 Accepted: 9035 Description Mirko works on a pig farm that consists of M locked p ...
分类:
其他好文 时间:
2016-06-25 19:10:50
阅读次数:
166
描述 http://www.lydsy.com/JudgeOnline/problem.php?id=1619 给出一张图每个点的高度,在一个点上安排守卫可以监视周围所有不高于于当前点的点.也就是类似在一个点上灌水,周围(8格)低于它的点都会有水,然后继续...求最少的守卫数. 分析 首先图中的最高 ...
分类:
其他好文 时间:
2016-06-23 21:57:42
阅读次数:
401
这里采用的是mongoDB官网推荐使用.net驱动:http://mongodb.github.io/mongo-csharp-driver/2.0/getting_started/quick_tour/有关于MongoDB的安装读者可以参考其他的博客,对于基本的学习来说并不需要进行过多的配置。 创 ...
分类:
数据库 时间:
2016-06-20 00:31:56
阅读次数:
247
1689: [Usaco2005 Open] Muddy roads 泥泞的路 Description Farmer John has a problem: the dirt road from his farm to town has suffered in the recent rainstor ...
分类:
其他好文 时间:
2016-06-18 11:32:57
阅读次数:
258
Farm Tour Time Limit: 2MS Memory Limit: 65536KB 64bit IO Format: %I64d & %I64u Description When FJ's friends visit him on the farm, he likes to show t ...
分类:
其他好文 时间:
2016-06-17 00:44:17
阅读次数:
237
PIGS Time Limit: 1000MS Memory Limit: 10000KB 64bit IO Format: %I64d & %I64u Description Mirko works on a pig farm that consists of M locked pig-house ...
分类:
其他好文 时间:
2016-06-16 01:39:49
阅读次数:
231
描述 http://www.lydsy.com/JudgeOnline/problem.php?id=1621\(n\)头奶牛,刚开始在一起,每次分成\(x\)和\(x+m\)两部分,直到不能再分,问最后一共有几部分. 分析 可以知道当前奶牛数\(n=x+x+m\),所以可以继续分的必要条件是\(n ...
分类:
其他好文 时间:
2016-06-12 12:32:49
阅读次数:
352
Description The cows have reconstructed Farmer John's farm, with its N barns (1 <= N <= 150, number 1..N) after the terrible earthquake last May. The ...
分类:
其他好文 时间:
2016-06-11 00:28:26
阅读次数:
223