hdu 1035 Robot Motion(dfs)
很簡單的一道題,一步步的走,走出矩陣則說明沒有環,若走到已經走過的地方,說明有環,按格式輸出結果即可!!! #include<stdio.h>
HDU 1104 Remainder (BFS(廣度優先搜索))
Remainder Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/32768 K
hdu1700 Points on Cycle (數學)
Problem Description There is a cycle with its center on the origin. Now give
hdu 4568 Hunter bfs建圖+TSP狀壓DP
想AC的人請跳過這一段。。。 題目應該都能讀懂。但是個人覺得這題出的很爛,意思太模糊了。 首先,進出次數只能是一次!!這個居然在題目中沒有明確說明,讓我在
hdu 1423 Greatest Common Increasing Subsequence
Greatest Common Increasing Subsequence Time Limit: 2000/1000 MS (Java/Others)
最短路+狀態壓縮dp(旅行商問題)hdu-4568-Hunter
題目大意: 給一個矩陣 n*m (n m<=200),方格裡如果是0~9表示通過它時要花費的代價,-1表示不能通過它。 矩陣中有k(k<=13
九度OnlineJudge之1464:Hello World for U
Given any string of N (>=5) characters, you are asked to form the characte