2014年11月9日

NYOJ-1057-寻找最大数(三)

摘要: http://acm.nyist.net/JudgeOnline/problem.php?pid=1057寻找最大数(三)时间限制:1000ms | 内存限制:65535KB难度:2描述给出一个整数N,每次可以移动2个相邻数位上的数字,最多移动K次,得到一个新的整数。求这个新的整数的最大值是多少。输... 阅读全文

posted @ 2014-11-09 13:28 angle_qqs 阅读(229) 评论(0) 推荐(0)

nyoj-1036-非洲小孩

摘要: http://acm.nyist.net/JudgeOnline/problem.php?pid=1036非洲小孩时间限制:1000ms | 内存限制:65535KB难度:2描述家住非洲的小孩,都很黑。为什么呢?第一,他们地处热带,太阳辐射严重。第二,他们不经常洗澡。(常年缺水,怎么洗澡。)现在,在... 阅读全文

posted @ 2014-11-09 13:25 angle_qqs 阅读(235) 评论(0) 推荐(0)

2014年11月7日

POJ-3617-Best Cow Line

摘要: http://poj.org/problem?id=3617Best Cow LineTime Limit:1000MSMemory Limit:65536KTotal Submissions:10603Accepted:3187DescriptionFJ is about to take hisN... 阅读全文

posted @ 2014-11-07 17:14 angle_qqs 阅读(330) 评论(0) 推荐(0)

2014年11月6日

NYOJ-891-找点

摘要: http://acm.nyist.net/JudgeOnline/problem.php?pid=891找点时间限制:2000ms | 内存限制:65535KB难度:2描述上数学课时,老师给了LYH一些闭区间,让他取尽量少的点,使得每个闭区间内至少有一个点。但是这几天LYH太忙了,你们帮帮他吗?输入... 阅读全文

posted @ 2014-11-06 23:43 angle_qqs 阅读(174) 评论(0) 推荐(0)

大平神出的一道双向链表题

摘要: Problem Description有一个包含n个数字的序列,刚开始时它的第i个数字为i。光标刚开始指向第一个数字(1),现在我们有如下几种操作:1 -光标左移(保证左边有数字)。2 -光标右移(保证右边有数字)。3 x -在光标前面加入一个数字。4 x -在光标后面加入一个数字。5 -删除光标前... 阅读全文

posted @ 2014-11-06 23:34 angle_qqs 阅读(202) 评论(0) 推荐(0)

2014年11月4日

ZOJ-1360 || POJ-1328——Radar Installation

摘要: ZOJ地址:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=360POJ地址:http://poj.org/problem?id=1328解题思路:贪心1#include2#include3#include4#include56s... 阅读全文

posted @ 2014-11-04 11:35 angle_qqs 阅读(167) 评论(0) 推荐(0)

2014年11月3日

POJ-2386-Lake Counting

摘要: 比较简单的一道深搜题目,适合练手1//题目链接:http://poj.org/problem?id=23862//解题思路:将湖泊定义为1,陆地定义为0,dfs搜索每个点即可3#include4#include56intmap[110][110],vis[110][110];//map模拟地图,vi... 阅读全文

posted @ 2014-11-03 11:18 angle_qqs 阅读(155) 评论(0) 推荐(0)

2014年11月2日

nyoj-27-水池数目

摘要: 1//题目地址:http://acm.nyist.net/JudgeOnline/status.php?pid=272//解题思路:裸的dfs,遍历每个格子dfs访问当前格子的相领格子3#include4#include56intmap[110][110],vis[110][110];7intdx[... 阅读全文

posted @ 2014-11-02 23:29 angle_qqs 阅读(126) 评论(0) 推荐(0)

noj-1102-黑白图像

摘要: 1//题目地址:http://acm.njupt.edu.cn/acmhome/problemdetail.do?method=showdetail&id=11022//解题思路:遍历每个格子dfs访问当前格子的相领黑格3#include4#include56#defineMAXN100078int... 阅读全文

posted @ 2014-11-02 23:26 angle_qqs 阅读(162) 评论(0) 推荐(0)

uva-100-The 3n + 1 problem

摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=36The 3n+ 1 problemBackgroundProblems in Computer Scien... 阅读全文

posted @ 2014-11-02 15:18 angle_qqs 阅读(171) 评论(0) 推荐(0)

导航