
深搜
文章平均质量分 85
lele_pipi
生命不息,奋斗不止!
展开
-
Bicoloring-广搜
Bicoloring In 1976 the ``Four Color Map Theorem" was proven with the assistance of a computer. This theorem states that every map can be colored using only four colors, in such a way tha原创 2014-07-17 17:22:57 · 444 阅读 · 0 评论 -
深搜-Salvation
Salvation描述 神秘瀑布镇是一个神秘的地方,那里有吸血鬼,狼人,巫师,二重身。 Klaus(吸血鬼祖先) 为了利用 Elena 的血液发展他的混血大军(吸血鬼&狼人),也来到了神秘瀑布镇。Stefan 因为深爱着 Elena ,于是 Stefan 决定去唤醒吸血鬼猎人,来解救 Elena 。 吸血鬼猎人被封锁在一个迷宫里,这个迷原创 2014-11-23 19:02:57 · 409 阅读 · 0 评论 -
深搜-素数环-nyoj
素数环描述有一个整数n,把从1到n的数字无重复的排列成环,且使每相邻两个数(包括首尾)的和都为素数,称为素数环。为了简便起见,我们规定每个素数环都从1开始。例如,下图就是6的一个素数环。输入有多组测试数据,每组输入一个n(0输出每组第一行输出对应的Case序号,从1开始。如果存在满足题意叙述的素数环,从小到大输出。否则输出No原创 2014-11-24 10:04:31 · 500 阅读 · 0 评论 -
深搜-nyoj-部分和问题
部分和问题描述给定整数a1、a2、.......an,判断是否可以从中选出若干数,使它们的和恰好为K。输入首先,n和k,n表示数的个数,k表示数的和。接着一行n个数。(1输出如果和恰好可以为k,输出“YES”,并按输入顺序依次输出是由哪几个数的和组成,否则“NO”样例输入4 131 2 4 7样例输出YES2 4 7原创 2014-11-24 10:34:57 · 600 阅读 · 0 评论 -
hdu1010-深搜+奇偶剪枝-Tempter of the Bone
DescriptionThe doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could feel the ground sinking. He re原创 2014-12-25 20:09:35 · 393 阅读 · 0 评论 -
nyoj-搜索-吝啬的国度
吝啬的国度描述在一个吝啬的国度里有N个城市,这N个城市间只有N-1条路把这个N个城市连接起来。现在,Tom在第S号城市,他有张该国地图,他想知道如果自己要去参观第T号城市,必须经过的前一个城市是几号城市(假设你不走重复的路)。输入第一行输入一个整数M表示测试数据共有M(1每组测试数据的第一行输入一个正整数N(1随后的N-1行,每行有两个正整数a,b(1原创 2014-12-30 11:11:11 · 458 阅读 · 0 评论 -
hdu-1455-Sticks-深搜+剪枝
SticksProblem DescriptionGeorge took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the original state, but he f原创 2015-05-28 08:41:42 · 412 阅读 · 0 评论 -
hdu-1518-Square-深搜+剪枝(同hdu1455)
SquareProblem DescriptionGiven a set of sticks of various lengths, is it possible to join them end-to-end to form a square? InputThe first line of input contains N, the number原创 2015-05-28 15:26:05 · 507 阅读 · 0 评论