
----bfs
文章平均质量分 85
_Occult_
物語が始まった
展开
-
HDU 1104 Remainder
Problem DescriptionCoco is a clever boy, who is good at mathematics. However, he is puzzled by a difficult mathematics problem. The problem is: Given three integers N, K and M, N may adds (‘+’) M,原创 2015-03-31 20:20:56 · 492 阅读 · 0 评论 -
HDU 2822 Dogs
Problem DescriptionPrairie dog comes again! Someday one little prairie dog Tim wants to visit one of his friends on the farmland, but he is as lazy as his friend (who required Tim to come to his p原创 2016-07-12 17:16:10 · 358 阅读 · 0 评论 -
HDU 1252 Hike on a Graph
Problem Description"Hike on a Graph" is a game that is played on a board on which an undirected graph is drawn. The graph is complete and has all loops, i.e. for any two locations there is exactly原创 2016-07-12 17:18:27 · 463 阅读 · 0 评论 -
HDU 3085 Nightmare Ⅱ
Problem DescriptionLast night, little erriyue had a horrible nightmare. He dreamed that he and his girl friend were trapped in a big maze separately. More terribly, there are two ghosts in the maz原创 2016-07-12 17:22:34 · 434 阅读 · 0 评论 -
HDU 3313 Key Vertex
Problem DescriptionYou need walking from vertex S to vertex T in a graph. If you remove one vertex which stops you from walking from S to T, that vertex we call as key vertex. Now you are given a原创 2016-07-12 17:25:22 · 348 阅读 · 0 评论 -
HDU 3345 War Chess
Problem DescriptionWar chess is hh's favorite game:In this game, there is an N * M battle map, and every player has his own Moving Val (MV). In each round, every player can move in four directio原创 2016-07-12 17:30:08 · 532 阅读 · 0 评论 -
HDU 3355 Hop — Don’t Walk!
Problem DescriptionKERMIT THE FROG is a classic video game with a simple control and objective but requires a good deal of thinking.You control an animated frog that can walk and hop, in both fo原创 2016-07-12 17:32:08 · 379 阅读 · 0 评论 -
HDU 3442 Three Kingdoms
Problem DescriptionThree Kingdoms is a funny game. Often Liu Bei is weak and has to run away,so in the game Liu Bei has a skill called "Dunzou". This time you are playing the role of Liu Bei.As Ca原创 2016-07-12 17:35:54 · 433 阅读 · 0 评论 -
HDU 3713 Double Maze
Problem DescriptionUnlike single maze, double maze requires a common sequence of commands to solve both mazes. See the figure below for a quick understanding.A maze is made up of 6*6 cel原创 2016-07-12 17:38:03 · 606 阅读 · 0 评论 -
HDU 3760 Ideal Path
Problem DescriptionNew labyrinth attraction is open in New Lostland amusement park. The labyrinth consists of n rooms connected by m passages. Each passage is colored into some color ci. Visitors原创 2016-07-12 17:40:30 · 628 阅读 · 0 评论 -
HDU 4198 Quick out of the Harbour
Problem DescriptionCaptain Clearbeard decided to go to the harbour for a few days so his crew could inspect and repair the ship. Now, a few days later, the pirates are getting landsick(Pirates get原创 2016-07-12 17:46:28 · 398 阅读 · 0 评论 -
HDU 2209 翻纸牌游戏
Problem Description有一种纸牌游戏,很有意思,给你N张纸牌,一字排开,纸牌有正反两面,开始的纸牌可能是一种乱的状态(有些朝正,有些朝反),现在你需要整理这些纸牌。但是麻烦的是,每当你翻一张纸牌(由正翻到反,或者有反翻到正)时,他左右两张纸牌(最左边和最右边的纸牌,只会影响附近一张)也必须跟着翻动,现在给你一个乱的状态,问你能否把他们整理好,使得每张纸牌都正面朝上,如果可以原创 2016-07-13 21:36:45 · 532 阅读 · 0 评论 -
HDU 2216 Game III
Problem DescriptionZjt and Sara will take part in a game, named Game III. Zjt and Sara will be in a maze, and Zjt must find Sara. There are some strang rules in this maze. If Zjt move a step, Sara原创 2016-07-13 21:38:10 · 391 阅读 · 0 评论 -
POJ 3083 Children of the Candy Corn
DescriptionThe cornfield maze is a popular Halloween treat. Visitors are shown the entrance and must wander through the maze facing zombies, chainsaw-wielding psychopaths, hippies, and other terro原创 2016-08-27 19:41:03 · 515 阅读 · 0 评论 -
HDU 5816 Hearthstone
Problem DescriptionHearthstone is an online collectible card game from Blizzard Entertainment. Strategies and luck are the most important factors in this game. When you suffer a desperate situatio原创 2016-08-09 19:02:55 · 856 阅读 · 0 评论 -
HDU 1242 Rescue
Problem DescriptionAngel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M Angel's friends want to save Angel. Their task is: approach Angel.原创 2016-08-10 17:07:25 · 237 阅读 · 0 评论 -
POJ 3414 Pots
DescriptionYou are given two pots, having the volume of A and B liters respectively. The following operations can be performed:FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap;DROP(i)原创 2016-09-01 18:45:56 · 236 阅读 · 0 评论 -
CSU 1569 Wet Tiles
Alice owns a construction company in the town of Norainia, famous for its unusually dry weather. In fact, it only rains a few days per year there. Because of this phenomenon, many residents of Noraini原创 2017-07-29 20:04:04 · 468 阅读 · 0 评论 -
HDU 2757 Ocean Currents
Problem DescriptionFor a boat on a large body of water, strong currents can be dangerous, but with careful planning, they can be harnessed to help the boat reach its destination. Your job is to he原创 2016-07-12 17:05:07 · 383 阅读 · 0 评论 -
HDU 2653 Waiting ten thousand years for Love
Problem DescriptionIt was ten thousand years, after Demon Lemon caught Yifenfei’s love. In order to revenge and save his love, Yifenfei have been practising sword all day long and his Kongfu skill原创 2016-07-12 16:58:16 · 515 阅读 · 0 评论 -
HDU 5691 Sitting in Line
Problem Description度度熊是他同时代中最伟大的数学家,一切数字都要听命于他。现在,又到了度度熊和他的数字仆人们玩排排坐游戏的时候了。游戏的规则十分简单,参与游戏的N个整数将会做成一排,他们将通过不断交换自己的位置,最终达到所有相邻两数乘积的和最大的目的,参与游戏的数字有整数也有负数。度度熊为了在他的数字仆人面前展现他的权威,他规定某些数字只能在坐固定的位置上,没有被度度熊原创 2016-05-21 19:12:17 · 758 阅读 · 0 评论 -
HDU 2706 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原创 2015-03-31 17:25:22 · 657 阅读 · 0 评论 -
FZU 2186 小明的迷宫
Accept: 68 Submit: 496Time Limit: 1000 mSec Memory Limit : 32768 KB Problem Description小明误入迷宫,塞翁失马焉知非福,原来在迷宫中还藏着一些财宝,小明想获得所有的财宝并离开迷宫。因为小明还是学生,还有家庭作业要做,所以他想尽快获得所有财宝并离开迷宫。 Input原创 2015-03-22 15:50:11 · 1177 阅读 · 0 评论 -
HDU 2102 A计划
Problem Description可怜的公主在一次次被魔王掳走一次次被骑士们救回来之后,而今,不幸的她再一次面临生命的考验。魔王已经发出消息说将在T时刻吃掉公主,因为他听信谣言说吃公主的肉也能长生不老。年迈的国王正是心急如焚,告招天下勇士来拯救公主。不过公主早已习以为常,她深信智勇的骑士LJ肯定能将她救出。现据密探所报,公主被关在一个两层的迷宫里,迷宫的入口是S(0,0,0),公主原创 2015-03-23 20:42:34 · 440 阅读 · 0 评论 -
HDU 1253 胜利大逃亡
Problem DescriptionIgnatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会.魔王住在一个城堡里,城堡是一个A*B*C的立方体,可以被表示成A个B*C的矩阵,刚开始Ignatius被关在(0,0,0)的位置,离开城堡的门在(A-1,B-1,C-1)的位置,现在知道魔王将在T分钟后回到城堡,Ignatius每分钟能从一个坐标走到相邻的六个原创 2015-02-19 16:59:46 · 550 阅读 · 0 评论 -
ZOJ 3890 Wumpus
One day Leon finds a very classic game called Wumpus.The game is as follow.Once an agent fell into a cave. The legend said that in this cave lived a kind of monster called Wumpus, and there were hor原创 2015-07-27 23:55:17 · 695 阅读 · 0 评论 -
ZOJ 1940 Dungeon Master
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原创 2015-07-18 21:44:30 · 593 阅读 · 0 评论 -
POJ 3322 Bloxorz I
DescriptionLittle Tom loves playing games. One day he downloads a little computer game called 'Bloxorz' which makes him excited. It's a game about rolling a box to a specific position on a speci原创 2015-07-18 21:55:21 · 405 阅读 · 0 评论 -
HDU 5433 Xiao Ming climbing
Problem DescriptionDue to the curse made by the devil,Xiao Ming is stranded on a mountain and can hardly escape.This mountain is pretty strange that its underside is a rectangle which size is原创 2015-09-16 13:30:40 · 495 阅读 · 0 评论 -
FZU 2092 收集水晶
Descriptionshadow来到一片神奇的土地,这片土地上不时会出现一些有价值的水晶,shadow想要收集一些水晶带回去,但是这项任务太繁杂了,于是shadow让自己的影子脱离自己并成为一个助手来帮助自己收集这些水晶。shadow把这片土地划分成n*m个小方格,某些格子会存在一些shadow和他的影子都无法穿越的障碍,比如巨石、树木、野兽等。shadow预先探测到了水晶出现的时间原创 2016-03-03 18:43:34 · 409 阅读 · 0 评论 -
PAT (Advanced Level) Practise 1064 Complete Binary Search Tree (30)
1064. Complete Binary Search Tree (30)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA Binary Search Tree (BST) is原创 2016-03-17 21:50:13 · 439 阅读 · 0 评论 -
HDU 5637 Transform
Problem DescriptionA list of n integers are given. For an integer x you can do the following operations:+ let the binary representation of x be b31b30...b0¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯, you can flip原创 2016-03-06 00:04:44 · 619 阅读 · 0 评论 -
HUST 1605 Gene recombination
DescriptionAs a gene engineer of a gene engineering project, Enigma encountered a puzzle about gene recombination. It is well known that a gene can be considered as a sequence, consisting of four原创 2016-03-06 20:48:36 · 312 阅读 · 0 评论 -
HDU 1043 Eight
Problem DescriptionThe 15-puzzle has been around for over 100 years; even if you don't know it by that name, you've seen it. It is constructed with 15 sliding tiles, each with a number from 1 to 1原创 2015-04-01 17:25:03 · 646 阅读 · 5 评论 -
PAT (Advanced Level) Practise 1076 Forwards on Weibo (30)
1076. Forwards on Weibo (30)时间限制3000 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueWeibo is known as the Chinese version o原创 2016-03-23 20:44:32 · 348 阅读 · 0 评论 -
PAT (Advanced Level) Practise 1099 Build A Binary Search Tree (30)
1099. Build A Binary Search Tree (30)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA Binary Search Tree (BST) is r原创 2016-03-26 12:30:15 · 472 阅读 · 3 评论 -
PAT (Advanced Level) Practise 1102 Invert a Binary Tree (25)
1102. Invert a Binary Tree (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe following is from Max Howell @twi原创 2016-03-26 13:44:02 · 444 阅读 · 0 评论 -
FZU 2150 Fire Game
DescriptionFat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each grid of this board is consisting of grass or just empty and原创 2016-04-14 21:38:17 · 764 阅读 · 0 评论 -
HDU 5925 Coconuts
TanBig, a friend of Mr. Frog, likes eating very much, so he always has dreams about eating. One day, TanBig dreams of a field of coconuts, and the field looks like a large chessboard which has R rows原创 2017-11-08 15:33:43 · 333 阅读 · 0 评论