wojiaohuangyu的专栏

一步一个脚印

nyoj-27 水池数目

题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=27代码: #include #include #include int num[120][120]; int top[4][2]={{1,0},{-1,0},{0,1},{0,-1}}; ...

2014-12-12 19:00:35

阅读数:377

评论数:0

hdu 2209 翻纸牌游戏

题目链接:搜索题,有两种情况,两种有一种不考虑的话就会WA.... 代码: #include #include #define INF 999999999//定义一个最大的数 #include using namespace std; int num; int shu1[30]; char st...

2014-12-09 21:09:13

阅读数:413

评论数:0

hdu 1015 Safecracker 搜索

http://acm.hdu.edu.cn/showproblem.php?pid=1015#include #include #include using namespace std; char zifu[2000],str[20],str1[20]; int mark[1000],k,num,...

2014-12-08 22:47:48

阅读数:348

评论数:0

nyoj-722 数独

正好我现在在玩数独这个游戏,看到这个问题我就来了兴趣,完成着这个问题,妈妈再也不用担心我玩数独游戏啦~~ 题目链接: http://acm.nyist.net/JudgeOnline/problem.php?pid=722#include int map[9][9]; int flag; int ...

2014-11-29 21:27:11

阅读数:705

评论数:2

hdu-1010 Tempter of the Bone 简单的搜索

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1010 做这道题目的时候需要注意剪枝,如果没有剪枝的话,就会超时 注意奇偶剪枝 代码:】 #include #include #include char map[20][20]; int top[4...

2014-11-29 11:00:31

阅读数:428

评论数:0

nyoj-58 最少步数 搜索

题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=58 比较简单的搜索题目, 代码: #include #include int map[9][9]={{1,1,1,1,1,1,1,1,1},{1,0,0,1,0,0,1,0,1}, ...

2014-11-29 10:51:38

阅读数:465

评论数:0

hdu-1241 Oil Deposits

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1241

2014-11-25 11:39:53

阅读数:383

评论数:0

hdu-1016 Prime Ring Problem 搜索题

Problem Description A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of n...

2014-11-22 10:41:26

阅读数:397

评论数:0

hdu-1312 Red and Black

Problem Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black t...

2014-11-16 16:13:05

阅读数:354

评论数:0

hdu-1518 Square

Square Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 8922    Accepted Submission(s): 29...

2014-11-05 19:50:59

阅读数:322

评论数:0

hdu-2616

Kill the monster Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 879    Accepted Submissio...

2014-10-18 10:37:17

阅读数:418

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭