搜索
文章平均质量分 87
Jstyle_AC
我欲成仙,必要坚持
展开
-
USACO 2.1-Healthy Holsteins
题目链接:http://train.usaco.org/usacoprob2?a=ckp2K41VOuH&S=holstein /* ID: m1590291 TASK: holstein LANG: C++ */ #include #include #include using namespace std; /***************************************原创 2016-04-25 17:35:56 · 192 阅读 · 0 评论 -
暑期第一弹<搜索> E - Find The Multiple(DFS)
E - Find The Multiple Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u Submit Status Description Given a positive integer n, write a program to find out a原创 2016-07-11 17:55:38 · 637 阅读 · 0 评论 -
暑期第一弹<搜索> D - Fliptile(黑白棋翻转经典题型 DFS)
D - Fliptile Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Description Farmer John knows that an intellectually satisfied cow is a happy原创 2016-07-11 17:44:37 · 4331 阅读 · 2 评论 -
暑期第一弹<搜索> C - Catch That Cow(BFS)
C - Catch That Cow Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Description Farmer John has been informed of the location of a fugitive原创 2016-07-11 17:31:36 · 343 阅读 · 0 评论 -
暑期第一弹<搜索> B - Dungeon Master(三维BFS,6个状态)
B - Dungeon Master Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Description You are trapped in a 3D dungeon and need to find the quickes原创 2016-07-11 17:24:57 · 1535 阅读 · 1 评论 -
暑期第一弹<搜索> A - 棋盘问题(简单dfs)
A - 棋盘问题 Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u Submit Status Description 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对原创 2016-07-11 17:08:48 · 1307 阅读 · 0 评论 -
HDU - 1455 Sticks(深搜+剪枝)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1455 说点题外话。这几天再次看搜索,找到一种新的理解方式,果然处理问题方便多了。 搜索的本质:利用递归实现很多个 for 循环,在每一次循环中不断筛选判断。 常见的搜索:1,枚举搜索 (HDU 2533 - 八皇后问题,UVa 524 - 素数环,UVa 129 - Krypton Facto原创 2016-05-17 23:56:41 · 537 阅读 · 0 评论 -
HDU - 1016 Prime Ring Problem
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1016 #include #include using namespace std; /*********************************************************************************************************原创 2016-04-15 14:58:23 · 167 阅读 · 0 评论 -
HDU - 2553 N皇后问题
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2553 #include using namespace std; /***************************************************************************************************************原创 2016-04-14 22:50:41 · 222 阅读 · 0 评论 -
HDU - 1015 Safecracker
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1015 #include #include #include #include #define res(v,w,x,y,z) v-w*w+x*x*x-y*y*y*y+z*z*z*z*z using namespace std; /****************************原创 2016-04-14 22:37:25 · 157 阅读 · 0 评论 -
HDU - 1010 Tempter of the Bone
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1010 #include #include #include using namespace std; /***********************************************************************************************原创 2016-04-13 15:54:41 · 186 阅读 · 0 评论 -
BFS - 水题
#include #include #include using namespace std; /**************************************************************************************************************** 题意:S为起点,D为终点,X为墙壁,原创 2016-04-13 14:06:13 · 462 阅读 · 0 评论 -
cf #360 div2C - NP-Hard Problem(二分图判断+输出)
C. NP-Hard Problem time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Recently, Pari and Arya did some researc原创 2016-06-30 23:13:12 · 860 阅读 · 2 评论