搜索
文章平均质量分 78
sunshine668
这个作者很懒,什么都没留下…
展开
-
周赛1
Problem DescriptionGiven a specified total t and a list of n integers, find all distinct sums using numbers from the list that add up to t. For example, if t=4, n=6, and the list is [4,3,2,2,1,1], t转载 2014-02-25 16:32:37 · 397 阅读 · 0 评论 -
hdu 1010 Tempter of the Bone
Problem 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-08-11 20:16:59 · 292 阅读 · 0 评论 -
hdu 4090 GemAnd Prince
Problem DescriptionNowadays princess Claire wants one more guard and posts the ads throughout the kingdom. For her unparalleled beauty, generality, goodness and other virtues, many people gather at原创 2014-08-27 20:42:47 · 304 阅读 · 0 评论 -
hdu 1026 Ignatius and the Princess I
Problem DescriptionThe Princess has been abducted by the BEelzebub feng5166, our hero Ignatius has to rescue our pretty Princess. Now he gets into feng5166's castle. The castle is a large labyrinth.原创 2014-09-26 20:33:13 · 296 阅读 · 0 评论 -
hdu 1728 逃离迷宫
Problem Description 给定一个m × n (m行, n列)的迷宫,迷宫中有两个位置,gloria想从迷宫的一个位置走到另外一个位置,当然迷宫中有些地方是空地,gloria可以穿越,有些地方是障碍,她必须绕行,从迷宫的一个位置,只能走到与它相邻的4个位置中,当然在行走过程中,gloria不能走到迷宫外面去。令人头痛的是,gloria是个没什么方向感的人,因此,她在行走过程原创 2014-11-15 10:47:46 · 707 阅读 · 0 评论 -
hdu 1172 猜数字
Problem Description猜数字游戏是gameboy最喜欢的游戏之一。游戏的规则是这样的:计算机随机产生一个四位数,然后玩家猜这个四位数是什么。每猜一个数,计算机都会告诉玩家猜对几个数字,其中有几个数字在正确的位置上。比如计算机随机产生的数字为1122。如果玩家猜1234,因为1,2这两个数字同时存在于这两个数中,而且1在这两个数中的位置是相同的,所以计算机会告诉玩家猜对了原创 2014-11-15 10:54:17 · 469 阅读 · 0 评论 -
poj2251
DescriptionYou are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. It takes one minute to move one un原创 2014-11-23 13:52:06 · 323 阅读 · 0 评论 -
poj 1088
DescriptionMichael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子 1 2 3 4 5 16 17 18 19 6 15 24 25 20 7 14原创 2014-11-22 16:06:35 · 440 阅读 · 0 评论 -
poj 3278
DescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow is at a pointK原创 2014-11-22 23:54:24 · 324 阅读 · 0 评论 -
poj1985
DescriptionAfter hearing about the epidemic of obesity in the USA, Farmer John wants his cows to get more exercise, so he has committed to create a bovine marathon for his cows to run. The maratho原创 2014-11-23 16:02:29 · 923 阅读 · 0 评论 -
poj 1274
DescriptionN cities named with numbers 1 ... N are connected with one-way roads. Each road has two parameters associated with it : the road length and the toll that needs to be paid for the road (原创 2014-11-22 21:40:35 · 326 阅读 · 0 评论 -
HDU 1241 Oil Deposits
Problem DescriptionThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates原创 2014-05-28 16:55:59 · 472 阅读 · 0 评论 -
hdu 1885 Key Task
Problem DescriptionThe Czech Technical University is rather old — you already know that it celebrates 300 years of its existence in 2007. Some of the university buildings are old as well. And the na原创 2014-08-12 09:11:22 · 350 阅读 · 0 评论 -
hdu 1716 排列2
Problem DescriptionRay又对数字的列产生了兴趣:现有四张卡片,用这四张卡片能排列出很多不同的4位数,要求按从小到大的顺序输出这些4位数。 Input每组数据占一行,代表四张卡片上的数字(0Output对每组卡片按从小到大的顺序输出所有能由这四张卡片组成的4位数,千位数字相同的在同一行,同一行中每个四位数间用空格分隔。每组输出数据间空一原创 2014-08-10 13:43:52 · 672 阅读 · 0 评论 -
hdu 1429 胜利大逃亡(续)
Problem DescriptionIgnatius再次被魔王抓走了(搞不懂他咋这么讨魔王喜欢)……这次魔王汲取了上次的教训,把Ignatius关在一个n*m的地牢里,并在地牢的某些地方安装了带锁的门,钥匙藏在地牢另外的某些地方。刚开始Ignatius被关在(sx,sy)的位置,离开地牢的门在(ex,ey)的位置。Ignatius每分钟只能从一个坐标走到相邻四个坐标中的其中一个。魔王原创 2014-08-08 13:16:51 · 399 阅读 · 0 评论 -
poj1915 Knight Moves
Knight MovesTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 21449Accepted: 9977DescriptionBackground Mr Somurolov, fabulous chess-gamer indeed, asser原创 2014-07-21 10:42:47 · 362 阅读 · 0 评论 -
poj 1753
Flip GameTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 30088 Accepted: 13052DescriptionFlip game is played on a rectangular 4x4 field with two-sided p原创 2014-07-20 20:23:39 · 357 阅读 · 0 评论 -
HDU 2952 Counting Sheep
Problem DescriptionA while ago I had trouble sleeping. I used to lie awake, staring at the ceiling, for hours and hours. Then one day my grandmother suggested I tried counting sheep after I'd gone原创 2014-05-28 16:50:37 · 595 阅读 · 0 评论 -
HDU 1312 Red and Black
Problem DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adja原创 2014-05-28 16:17:10 · 919 阅读 · 0 评论 -
HDU 2553 N皇后问题
Problem Description在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。你的任务是,对于给定的N,求出有多少种合法的放置方法。 Input共有若干行,每行一个正整数N≤10,表示棋盘和皇后的数量;如果N=0,表示结束。 Output原创 2014-05-28 18:33:43 · 898 阅读 · 0 评论 -
hdu 1181 变形课
Problem Description呃......变形课上Harry碰到了一点小麻烦,因为他并不像Hermione那样能够记住所有的咒语而随意的将一个棒球变成刺猬什么的,但是他发现了变形咒语的一个统一规律:如果咒语是以a开头b结尾的一个单词,那么它的作用就恰好是使A物体变成B物体.Harry已经将他所会的所有咒语都列成了一个表,他想让你帮忙计算一下他是否能完成老师的作业,将一个B(b原创 2014-07-23 21:09:07 · 465 阅读 · 0 评论 -
Network Saboteur
DescriptionA university network is composed of N computers. System administrators gathered information on the traffic between nodes, and carefully divided the network into two subnetworks in ord原创 2014-07-06 20:36:32 · 409 阅读 · 0 评论 -
Knight Moves bfs
DescriptionA friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find the shortest closed tour of knight moves that visits each square of a given set of n squa原创 2014-07-05 19:37:52 · 296 阅读 · 0 评论 -
The Settlers of Catan
DescriptionWithin Settlers of Catan, the 1995 German game of the year, players attempt to dominate an island by building roads, settlements and cities across its uncharted wilderness. You are原创 2014-07-06 19:38:55 · 413 阅读 · 0 评论 -
Left Mouse Button
DescriptionMine sweeper is a very popular small game in Windows operating system. The object of the game is to find mines, and mark them out. You mark them by clicking your right mouse button. The原创 2014-07-06 09:42:20 · 1229 阅读 · 0 评论 -
poj 3026 Borg Maze
DescriptionThe Borg is an immensely powerful race of enhanced humanoids from the delta quadrant of the galaxy. The Borg collective is the term used to describe the group consciousness of the Borg原创 2014-08-06 16:42:06 · 306 阅读 · 0 评论 -
hdu 2612 Find a way
Problem DescriptionPass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to meet. Especially a good friend Merceki.Yifen原创 2015-01-17 15:29:52 · 311 阅读 · 0 评论