原创 POJ - 1426 Find The Multiple 【深搜】

E - Find The Multiple Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal r

原创 HDU - 2612 Find a way 【bfs】

Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have man

原创 HDU - 1495 非常可樂【bfs】

非常可樂 大家一定覺的運動以後喝可樂是一件很愜意的事情,但是seeyou卻不這麼認爲。因爲每次當seeyou買了可樂以後,阿牛就要求和seeyou一起分享這一瓶可樂,而且一定要喝的和seeyou一樣多。但seeyou的手中只有兩個杯子,它

原创 POJ - 3984 迷宮問題【bfs路徑打印】

 K - 迷宮問題 POJ - 3984 定義一個二維數組: 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

原创 UVA 11624 Fire! 【廣搜】

J - Fire!  UVA 題目描述 喬在迷宮中工作。不幸的是,迷宮的一部分着火了,迷宮的主人沒有制定火災的逃跑計劃。請幫助喬逃離迷宮。根據喬在迷宮中的位置以及迷宮的哪個方塊着火,你必須確定火焰燒到他之前,喬是否可以離開迷宮,如果能離開

原创 POJ - 3414 Pots 【路徑打印+bfs】

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

原创 E - Find The Multiple POJ - 1426

E - Find The Multiple Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal r

原创 HDU 1075 What Are You Talking About【map的應用】

What Are You Talking AboutTime Limit: 10000/5000 MS (Java/Others)    Memory Limit: 102400/204800 K (Java/Others)Total S

原创 POJ 2251 Dungeon Master【廣度優先搜索】

Dungeon MasterTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 44840 Accepted: 16880DescriptionYou are trapped

原创 HDU 1176 免費餡餅【基礎dp】

免費餡餅Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 60519    Ac

原创 HDU 1087 Super Jumping! Jumping! Jumping!【基礎dp】

Super Jumping! Jumping! Jumping!Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Tota

原创 hrbust 1181 移動【廣度優先搜索】

移動Time Limit: 1000 MSMemory Limit: 65536 KTotal Submit: 1375(370 users)Total Accepted: 531(350 users)Rating:Special Jud

原创 POJ 1321 棋盤問題【深度優先搜索】

棋盤問題Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 60983 Accepted: 29214Description在一個給定形狀的棋盤(形狀可能是不規則的)上面擺放

原创 hurbust 1179 下山【dfs深度優先搜索】

下山Time Limit: 1000 MSMemory Limit: 65536 KTotal Submit: 902(341 users)Total Accepted: 405(306 users)Rating:Special Judg

原创 POJ 1458 Common Subsequence【最長公共子序列】

Common SubsequenceTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 59599 Accepted: 24845DescriptionA subsequen