码迷,mamicode.com
首页 >  
搜索关键字:contest    ( 3128个结果
BFS 骑士的移动
骑士的移动题目链接:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=83498#problem/E题目:DescriptionA friend of you is doing research on theTraveling Knight ...
分类:移动开发   时间:2015-07-26 20:42:37    阅读次数:154
2015 Multi-University Training Contest 2 hdu 5303 Delicious Apples
Delicious ApplesTime Limit: 5000/3000 MS (Java/Others)Memory Limit: 524288/524288 K (Java/Others)Total Submission(s): 1057Accepted Submission(s): 354P...
分类:移动开发   时间:2015-07-25 18:07:14    阅读次数:293
2015 Multi-University Training Contest 2 1004 Delicious Apples(贪心)
题意:有一个长度为L的环,环上一些点有苹果,每次最多能拿k个苹果,问把全部苹果都拿完所走过的最短距离。 思路:贪心加dp。 首先,如果这个环从中点处割开,那么只需要对两边进行贪心即可,现在连在一起,那么多了一种可能,即绕环一周拿苹果这种方案。 不难证明,至多只可能绕环一次,因为绕环多次可以分为对一侧拿苹果加绕一圈这种方案。 具体实现:将cnt棵苹果树分为n棵每棵上有一个苹果的苹果树,记录每...
分类:移动开发   时间:2015-07-25 00:17:39    阅读次数:132
2015 Multi-University Training Contest 2 1004 Delicious Apples
Delicious Apples Problem's Link: http://acm.hdu.edu.cn/showproblem.php?pid=5303 Mean:一条长为L的环形路上种着n棵苹果数。第i棵苹果数的位置在xi,有ai个苹果,苹果树的位置按顺时针顺序给出,且都是整数...
分类:移动开发   时间:2015-07-24 10:31:45    阅读次数:180
Codeforces Gym 100513D D. Data Center 前缀和 排序
D. Data CenterTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/contest/560/problem/BDescriptionThe startup "Booble" has shown explosive...
分类:编程语言   时间:2015-07-23 19:36:37    阅读次数:143
POJ3156 暑假集训-最短路H题floyd http://acm.hust.edu.cn/vjudge/contest/view.action?cid=82829#rank
#include#include#include#include#include#include#include#includeusing namespace std;#define max(a, b) a>b?a:b;#define min(a, b) a<b?a:b;#define maxn 1...
分类:Web程序   时间:2015-07-20 21:21:39    阅读次数:172
HDU2612 -暑假集训-搜索进阶N http://acm.hust.edu.cn/vjudge/contest/view.action?cid=82828#problem/N
这两天总是因为一些小错误耽误时间,我希望自己可以细心点。珍惜时间,珍爱生命!#include#include#include#include#include#include#include#include#include#includeusing namespace std;#define INF ...
分类:Web程序   时间:2015-07-20 12:18:41    阅读次数:211
Ubuntu自动生成更换壁纸配置文件脚本的困惑
花了一整个下午研究了下Ubuntu怎么自动切换壁纸。其实,感觉还是很简单的,主要就是修改目录/usr/share/backgrouds/contest/trusty.xml的配置文件。它的格式是这样的: 1 2 3 2009 4 08 5 04 6 0...
分类:系统相关   时间:2015-07-19 21:30:11    阅读次数:493
POJ-3126 暑假集训-搜索进阶F题http://acm.hust.edu.cn/vjudge/contest/view.action?cid=82828#problem/F
经验就是要认真细心,要深刻理解。num#include#include#include#include#include#include#include#includeusing namespace std;#define N 11000typedef struct yes{int l, m;//lo...
分类:Web程序   时间:2015-07-18 18:24:59    阅读次数:131
暑假集训第一周比赛G题http://acm.hust.edu.cn/vjudge/contest/view.action?cid=83146#problem/G
G - 向Crawling in process... Crawling failed Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription把一个字符三角形掏空,就能节...
分类:Web程序   时间:2015-07-17 22:25:13    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!