随笔分类 -  ------【搜索】

HDU - 1428【bfs+记忆化】
摘要:点击查看详情——《IJCAI 2017 口碑商家客流量预测大赛》 漫步校园 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4205 Accept 阅读全文

posted @ 2017-02-11 16:48 Jstyle 阅读(224) 评论(0) 推荐(0)

codeforces 764C【dfs】
摘要:C. Timofey and a tree time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Each New Year Timo 阅读全文

posted @ 2017-02-03 20:50 Jstyle 阅读(278) 评论(0) 推荐(0)

暑期第一弹<搜索> E - Find The Multiple(DFS)
摘要:E - Find The Multiple Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u Submit Status E - Find The Multiple Submit Status Descripti 阅读全文

posted @ 2016-07-11 17:55 Jstyle 阅读(837) 评论(0) 推荐(0)

暑期第一弹<搜索> D - Fliptile(黑白棋翻转经典题型 DFS)
摘要:D - Fliptile Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status D - Fliptile Submit Status Description Farmer John kno 阅读全文

posted @ 2016-07-11 17:44 Jstyle 阅读(442) 评论(0) 推荐(0)

暑期第一弹<搜索> C - Catch That Cow(BFS)
摘要:C - Catch That Cow Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status C - Catch That Cow Submit Status Description Far 阅读全文

posted @ 2016-07-11 17:31 Jstyle 阅读(234) 评论(0) 推荐(0)

暑期第一弹<搜索> A - 棋盘问题(简单dfs)
摘要:A - 棋盘问题 Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u Submit Status A - 棋盘问题 Submit Status Description 在一个给定形状的棋盘(形状可能是不规则的)上面 阅读全文

posted @ 2016-07-11 17:08 Jstyle 阅读(238) 评论(0) 推荐(0)

HDU - 1455 Sticks(深搜+剪枝)
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1455 说点题外话。这几天再次看搜索,找到一种新的理解方式,果然处理问题方便多了。 搜索的本质:利用递归实现很多个 for 循环,在每一次循环中不断筛选判断。 常见的搜索: 1,枚举搜索 (HDU 253 阅读全文

posted @ 2016-05-17 23:56 Jstyle 阅读(147) 评论(0) 推荐(0)

USACO 2.1-Healthy Holsteins
摘要:题目链接:http://train.usaco.org/usacoprob2?a=ckp2K41VOuH&S=holstein 阅读全文

posted @ 2016-04-25 17:35 Jstyle 阅读(133) 评论(0) 推荐(0)

USACO 2.1-Sorting a Three-Valued Sequence
摘要:题目链接:http://train.usaco.org/usacoprob2?a=bzdILz0bsTb&S=sort3 阅读全文

posted @ 2016-04-25 16:43 Jstyle 阅读(127) 评论(0) 推荐(0)

HDU - 1016 Prime Ring Problem
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1016 阅读全文

posted @ 2016-04-15 14:58 Jstyle 阅读(100) 评论(0) 推荐(0)

HDU - 2553 N皇后问题
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2553 阅读全文

posted @ 2016-04-14 22:50 Jstyle 阅读(111) 评论(0) 推荐(0)

HDU - 1015 Safecracker
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1015 #include <iostream> #include <stdio.h> #include <algorithm> #include <string.h> #define res(v,w,x, 阅读全文

posted @ 2016-04-14 22:37 Jstyle 阅读(78) 评论(0) 推荐(0)

HDU - 1010 Tempter of the Bone
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1010 阅读全文

posted @ 2016-04-13 15:54 Jstyle 阅读(108) 评论(0) 推荐(0)

USACO 2.1-The Castle
摘要:/* ID: m1590291 TASK: castle LANG: C++ */ #include #include #include using namespace std; /**********************************************************************************************************... 阅读全文

posted @ 2016-04-09 14:11 Jstyle 阅读(123) 评论(0) 推荐(0)

USACO 1.5-Superprime Rib
摘要:/* ID: m1590291 TASK: sprime LANG: C++ */ #include #include using namespace std; /****************************************************************************************************************** ... 阅读全文

posted @ 2016-04-06 23:50 Jstyle 阅读(110) 评论(0) 推荐(0)

USACO 1.5-Prime Palindromes
摘要:/* ID: m1590291 TASK: pprime LANG: C++ */ #include using namespace std; /****************************************************************************************************************** ... 阅读全文

posted @ 2016-04-06 23:49 Jstyle 阅读(119) 评论(0) 推荐(0)

USACO 1.4-Mother's Milk
摘要:/* ID: m1590291 TASK: milk3 LANG: C++ */ #include #include #include #define MAX 25 int A,B,C; int ans[MAX]; //涂灰的标志数组 int vis[MAX][MAX][MAX]; //dfs的执行数组 /*********************************... 阅读全文

posted @ 2016-04-06 23:47 Jstyle 阅读(125) 评论(0) 推荐(0)

USACO 1.3-Wormholes
摘要:此题 copy 别人的,题意都木有读的很懂。这样是不好滴,知识习惯性的更新一下 blog,以后减少这样的行为。代码粘一下,看看别人的代码吧。 阅读全文

posted @ 2016-04-05 22:50 Jstyle 阅读(114) 评论(0) 推荐(0)

USACO 1.3-Prime Cryptarithm
摘要:/* ID: m1590291 TASK: crypt1 LANG: C++ */ #include #include #include using namespace std; /**********************************************************************************************************... 阅读全文

posted @ 2016-04-04 23:06 Jstyle 阅读(146) 评论(0) 推荐(0)

导航