
搜索
文章平均质量分 87
Jstyle_AC
我欲成仙,必要坚持
展开
-
USACO 2.1-Healthy Holsteins
题目链接:http://train.usaco.org/usacoprob2?a=ckp2K41VOuH&S=holstein/*ID: m1590291TASK: holsteinLANG: C++*/#include #include #include using namespace std;/***************************************原创 2016-04-25 17:35:56 · 231 阅读 · 0 评论 -
暑期第一弹<搜索> E - Find The Multiple(DFS)
E - Find The MultipleTime Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionGiven a positive integer n, write a program to find out a原创 2016-07-11 17:55:38 · 668 阅读 · 0 评论 -
暑期第一弹<搜索> D - Fliptile(黑白棋翻转经典题型 DFS)
D - FliptileTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionFarmer John knows that an intellectually satisfied cow is a happy原创 2016-07-11 17:44:37 · 4445 阅读 · 2 评论 -
暑期第一弹<搜索> C - Catch That Cow(BFS)
C - Catch That CowTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionFarmer John has been informed of the location of a fugitive原创 2016-07-11 17:31:36 · 373 阅读 · 0 评论 -
暑期第一弹<搜索> B - Dungeon Master(三维BFS,6个状态)
B - Dungeon MasterTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionYou are trapped in a 3D dungeon and need to find the quickes原创 2016-07-11 17:24:57 · 1630 阅读 · 1 评论 -
暑期第一弹<搜索> A - 棋盘问题(简单dfs)
A - 棋盘问题Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对原创 2016-07-11 17:08:48 · 1372 阅读 · 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 · 577 阅读 · 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 · 194 阅读 · 0 评论 -
HDU - 2553 N皇后问题
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2553#include using namespace std;/***************************************************************************************************************原创 2016-04-14 22:50:41 · 246 阅读 · 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*zusing namespace std;/****************************原创 2016-04-14 22:37:25 · 197 阅读 · 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 · 217 阅读 · 0 评论 -
BFS - 水题
#include #include #include using namespace std;/**************************************************************************************************************** 题意:S为起点,D为终点,X为墙壁,原创 2016-04-13 14:06:13 · 486 阅读 · 0 评论 -
cf #360 div2C - NP-Hard Problem(二分图判断+输出)
C. NP-Hard Problemtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputRecently, Pari and Arya did some researc原创 2016-06-30 23:13:12 · 899 阅读 · 2 评论