原创 POJ3984(迷宮問題)

迷宮問題 Description 定義一個二維數組: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0,

原创 HDU1195(Open the Lock)

Open the Lock 題目傳送門 Problem Description Now an emergent task for you is to open a password lock. The password is co

原创 HDU1026(Ignatius and the Princess I)

Ignatius and the Princess I Problem Description The Princess has been abducted by the BEelzebub feng5166, our hero

原创 POJ3417(Network)

Network Description Yixght is a manager of the company called SzqNetwork(SN). Now she’s very worried because she ha

原创 POJ3414(Pots)

Pots Description You are given two pots, having the volume of A and B liters respectively. The following operations

原创 HDU1043(Eight)

Eight 題目傳送門 Input You will receive, several descriptions of configuration of the 8 puzzle. One description is just

原创 HDU1973(Prime Path)

Prime Path 題目傳送門 Problem Description The ministers of the cabinet were quite upset by the message from the Chief of

原创 HDU2072(單詞數)

單詞數 Problem Description lily的好朋友xiaoou333最近很空,他想了一件沒有什麼意義的事情,就是統計一篇文章裏不同單詞的總數。下面你的任務是幫助xiaoou333解決這個問題。 Input 有多組數據

原创 HDU3394(Railway)

Railway 題目傳送門 Problem Description There are some locations in a park, and some of them are connected by roads. The

原创 HDU1671(Phone List)

Phone List Problem Description Given a list of phone numbers, determine if it is consistent in the sense that no nu

原创 HDU3078(Network)

Network Problem Description The ALPC company is now working on his own network system, which is connecting all N AL

原创 UVA11624(Fire!)

Fire! 思路 這道題應該是和前面做的杭電那個差不多,先讓火跑bfs把到達每一塊空地的時間存下來,然後讓人去跑bfs看看能不能比火先到這個點,如果能就可以過去,如果人走到這裏比火還慢等着被燒死,注意有多個起火點。 UVA的題目

原创 HDU1241(Oil Deposits)

Oil Deposits Problem Description The GeoSurvComp geologic survey company is responsible for detecting underground

原创 HDU3567(Eight II)

Eight II 題目傳送門 Problem Description Eight-puzzle, which is also called “Nine grids”, comes from an old game. In this

原创 HDU1007(Quoit Design)

Quoit Design 題目傳送門 Problem Description Have you ever played quoit in a playground? Quoit is a game in which flat ri