ACM題集以及各類總結大全!php
雖然退役了,可是整理一下,供小弟小妹們之後切題方便一些,但因爲近來考試太多,顧退役總結延遲一段時間再寫!先寫一下各類分類和題集,歡迎各位大牛路過指正。html
關於ACM 百度百科鏈接git
杭州電子科技大學(hdu)ACM題目 鏈接算法
關於acm的幫助 鏈接數組
北京大學(poj)題目 鏈接網絡
浙江大學(zoj)題目 鏈接數據結構
uva 題目 鏈接ide
青理工大學acm宣傳ppt(聽說就是耀哥的魅力害了好多人來搞ACM) 鏈接函數
****************************************************************************************************************************************************************************post
poj題目分類 小媛在努力原創
圖的搜索分類 夏天的風原創
POJ 1164: The Castle(*)
POJ 2676: Sudoku(*)
POJ 1190: 生日蛋糕
POJ 1724: ROADS
POJ 1011: Sticks
POJ 1562: Oil Deposits(*)
POJ 1979: Red and Black(*)
POJ 2488: A Knight's Journey(*)
POJ 1321: 棋盤問題(*)
POJ 3984: 迷宮問題(*)
POJ 2248: Addition Chains
POJ 3083: Children of the Candy Corn
POJ 3009: Curling 2.0
POJ 2251: Dungeon Master
POJ 1950: Dessert
POJ 1416: Shredding Company
poj1010——郵票問題 DFS
poj1011——Sticks dfs + 剪枝
poj1020——拼蛋糕
poj1054——The Troublesome Frog
poj1062——昂貴的聘禮
poj1077——Eight
poj1084——Square Destroyer
poj1085——Triangle War(博弈,極大極小搜索+alpha_beta剪枝)
poj1088——滑雪
poj1129——Channel Allocation 着色問題 dfs
poj1154——letters (dfs)
poj1164——USACO Section 2.1 The Castle - 簡單的DFS...
poj1166——The Clocks
poj1184——聰明的打字員
poj1190——dfs(生日蛋糕)
poj1191——棋盤分割
poj1256——DFS
poj1321——棋盤問題 (dfs) AC
poj1471——dfs 搜索三角形
poj1501——dfs(找字符串)
poj1568——Find the Winning Move(極小極大搜索+alpha-beta剪枝)
poj1579——Function Run Fun 記憶化搜索
poj1655——Balancing Act (樹形df…
poj1699——Best Sequence(dfs+剪…
poj1742——Coins
poj1753——Flip Game (枚舉+dfs) AC
poj1847——Tram 優先隊列+bfs
poj1903——Jurassic Remains 中途相遇法(枚舉)
poj1915——第一個雙向BFS
poj2157——Maze (bfs)
poj2192——DFS+剪枝
poj2251——三維BFS
poj2312——Battle City 優先多列+bfs
poj2362——搜索順序和方法很重要..
poj2449——A*初步+ K短路
poj2641——圖的最長路經..
poj2965——The Pilots (bfs+位運…
poj3037——Skiing (解法2:bfs+hea…
poj3126——Prime Path bfs
poj3131——Cubic Eight-Puzzle
poj3251——Big Square
poj3255——求兩點間的第二短路
poj3256——Cow Picnic (dfs)
poj3317——Stake Your Claim(極大極小搜索+alpha-beta剪枝)
poj3373——Changing Digits
poj3620——Avoid The Lakes(DFS超水。。)
poj3628——Bookshelf 2 (dfs)
poj3633——Copying DNA
poj3635——Full Tank? (bfs+優先隊列)
poj3740——Easy Finding
poj3984——BFS+DFS(保存路徑)
一些好題目 POJ 1190 – 生日蛋糕(基礎,好題) http://acm.pku.edu.cn/JudgeOnline/problem?id=1190 題意:略 解法:dfs,題偏簡單,但作出來仍是有些感受的 POJ 1376 – Robot(基礎) http://acm.pku.edu.cn/JudgeOnline/problem?id=1376 題意:略 解法:bfs,A*…. POJ 2688 – Cleaning Robot(基礎) http://acm.pku.edu.cn/JudgeOnline/problem?id=2688 題意:bfs後轉換爲tsp問題 解法:bfs+dp,bfs+dfs 相關:http://hi.baidu.com/zfy0701/blog/item/ceb06f261749a6128a82a1b2.html POJ 3322 – Bloxorz I(基礎) http://acm.pku.edu.cn/JudgeOnline/problem?id=3322 題意:略,這個遊戲自己很好玩http://jandan.net/2008/01/24/bloxorz.html 解法:廣搜,雙向廣搜 相關:http://hi.baidu.com/zfy0701/blog/item/d7b6490f847948e8ab6457c6.html POJ 2308 – Dearboy’s Puzzle(中等,但作的人少?) http://acm.pku.edu.cn/JudgeOnline/problem?id=2308 題意:判斷連連看是否有解 解法:DFS + BFS 相關:http://hi.baidu.com/zfy0701/blog/item/c62f41af65aa1fca7cd92afc.html POJ 1324 – Holedox Moving(中等) http://acm.pku.edu.cn/JudgeOnline/problem?id=1324 題意:略 解法:A*,dfs + 上界剪枝,廣搜 相關:http://hi.baidu.com/zfy0701/blog/item/7fcaba2c3d5425e98a1399cf.html http://hi.baidu.com/zfy0701/blog/item/a3c44ecc049b1c1501e92806.html POJ 1084 – Square Destroyer(中等,經典題) http://acm.pku.edu.cn/JudgeOnline/problem?id=1084 題意:把每一個正方型看作集合中的元素,每一個木棒看作是一個子集,求最小的子集覆蓋 解法:dfs,A*,廣搜確定爆空間 POJ 2449 Remmarguts’ Date(中等,強烈推薦) http://acm.pku.edu.cn/JudgeOnline/problem?id=2449 題意:經典問題:K短路 解法:dijkstra+A*,方法不少 相關:http://acm.pku.edu.cn/JudgeOnline/showcontest?contest_id=1144 POJ 2044 – Weather Forecast(中等) http://acm.pku.edu.cn/JudgeOnline/problem?id=2044 題意:略 解法:廣搜,dp,深搜 相關:http://hi.baidu.com/zfy0701/blog/item/d7b6490f847948e8ab6457c6.html POJ 3635 full tank?(中等) http://acm.pku.edu.cn/JudgeOnline/problem?id=3635 題意:最短路變形 解法:廣搜 相關:http://hi.baidu.com/hnu_reason/blog/item/086e3dccfc8cb21600e9286b.html POJ 3074 – Sudoku(中等) http://acm.pku.edu.cn/JudgeOnline/problem?id=3074 題意:數獨遊戲,數據比2676強不少,但比3076弱 解法:用dfs回溯基本可過,不過每次應選擇可能填的數字最少的格子搜 更快的方法是先轉換成exact cover問題,而後用經典dancing links解決, dancing links原始論文:http://lanl.arxiv.org/PS_cache/cs/pdf/0011/0011047v1.pdf 翻譯:http://sqybi.com/works/dlxcn/ POJ 1475 – Pushing Boxes(中等,很推薦) http://acm.pku.edu.cn/JudgeOnline/problem?id=1475 題意:推箱子游戲 解法:雙重bfs(對箱子bfs 時 對人bfs),A* POJ 1077 – Eight(中等,此題不作人生不完整) http://acm.pku.edu.cn/JudgeOnline/problem?id=1077 題意:八數碼問題,超經典題 解法:廣搜,A*,雙向廣搜 簡單搜索 (1)深度優先搜索 (poj2488,poj3009,poj1321) (2)廣度優先搜索 (poj3278,poj1426,poj3126,poj3087.poj3414,poj2251,poj3083) (3)簡單搜索技巧和剪枝(poj2531,poj1416,poj2676,1129) 搜索、回溯、遍歷 1022 1111 1118 1129 1190 1562 1564 1573 1655 2184 2225 2243 2312 2362 2378 2386 1010,1011,1018,1020,1054,1062,1256,1321,1363,1501,1650,1659,1664,1753,2078,208 3,2303,2310,2329 簡單:1128, 1166, 1176, 1231, 1256, 1270, 1321, 1543, 1606, 1664, 1731, 1742, 17 45, 1847, 1915, 1950, 2038, 2157, 2182, 2183, 2381, 2386, 2426, 不易:1024, 1054, 1117, 1167, 1708, 1746, 1775, 1878, 1903, 1966, 2046, 2197, 23 49, 推薦:1011, 1190, 1191, 1416, 1579, 1632, 1639, 1659, 1680, 1683, 1691, 1709, 17 14, 1753, 1771, 1826, 1855, 1856, 1890, 1924, 1935, 1948, 1979, 1980, 2170, 2288 , 2331, 2339, 2340,1979(和迷宮相似) 1980(對剪枝要求較高) 1010 stamps 1011 sticks Accepted 1020 Anniversary Cake 1022 Packing Unit 4D Cubes 1024 Tester Program 1054 The Troublesome Frog 1062 昂貴的聘禮 1069 The Bermuda Triangle 1072 Puzzle Out 1077 Eight Accepted 2006-08-19 16:16 A*,也可逆向搜索,預先算出全部狀態 1084 Square Destroyer 1100 Dreisam Equations 1101 The Game (BFS) Accepted 2006-08-31 01:03簡單題,很是普通的BFS 1110 Double Vision 1111 Image Perimeters 1117 Pairs of Integers 1118 Lining Up 1128 Frame Stacking Accepted 2006-07-29 1129 Channel Allocation(圖的最大獨立集) 1137 The New Villa (BFS) Accepted 2006-08-29 23:07 1142 Smith Numbers 1162 Building with Blocks 1164 The castle (DFS) 1166 The Cocks 1167 The buses 1176 Party Lamps 1183 反正切函數的應用 Accepted 2006-08-30 22:27沒勁~一道簡單的數學推導題~ 1184 聰明的打字員 Accepted 2006-08-17 06:18 若是以爲本身BFS的題作得差很少了,能夠作一下這道題.做了這道題開始對BFS另眼相看了~花了整整一夜寫代碼,改代碼~ 1190 生日蛋糕 搜索的步驟就是,從最低層開始,每一層從可能的最大半徑一直枚舉到最小可能半徑,高度亦如此。一個參數表示層數,表示上一層的半徑,高度,仍是剩餘體積,已有面積 1191 棋盤分割 1194 HIDDEN CODES 搜索+DP 1231 The Alphabet Game 1233 Street Crossing (BFS) 1248 Safecracker 1256 Anagram Accepted 1270 Following orders Accepted 2006-08-06 01:59 similar to toposort 1318 Word Amalgamation 1321 棋盤問題 1324 Holedox Moving (BFS) 1327 Moving Object Recognition Accepted 2006-08-22 01:11 Floodfill again 1338 Ugly Numbers 1363 Rails 1376 Robot Accepted 2006-08-13 06:52太陰險了,機器人起始位置和目的地可能重合,BFS 1416 Shredding Company Accepted 1465 Multiple Accepted 2006-08-05 15:21 1476 Always On the Run (BFS) 1480 Optimal Programs (BFS) 1482 It's not a Bug, It's a Feature! (BFS) 1543 Pefect Cubes Accepted 1562 Oil Deposits Accepted 2006-08-14 04:39 Floodfill 1564 Sum It Up Accepted 1573 Robot Motion 1579 Fuction Run Fun 1601 Pizza Anyone? 1606 Jugs Accepted 1632 Vase collection 1639 Picnic Planing 1655 Balancing Act 1659 Frog's Neighborhood 1664 放蘋果 整數無序拆分 1680 Frok() Makes Trouble 1683 Puzzlestan 1691 Painting A Board 1708 Game 1709 Cross word 1713 Divide et unita 1714 The Cave 1731 orders 任意字符串的全排列 1742 Coins 更像是DP 1745 Divisibility Accepted shouldn't be counted as a searching prob 1746 Loan 1753 Flip Game (BFS) Accepted 1771 Elevator Stopping Plan 1775 Sum of Factorials Accepted 1826 The best Farm 1831 不定方程組 1847 Tram Accepted 2006-08-10 02:35 Dijkstra 1855 Mint 1856 Sea Battle 1873 The Fortified Forest 回溯 1878 Jill's Bike 1882 Stamps 1890 Switching Channels 1903 Jurassic Remains 1915 Knight Moves (BFS) 雙向廣度優先搜索提升效率 1924 The Treasure 1935 Journey 1948 Trianglar Pastures 1950 Dessert 1966 Cable TV Network 1979 Red and Black Accepted 2006-08-05 17:04 1980 Unit Fraction Partition 剪枝 2038 Team Ranking Accepted 2006-08-11 19:12無聊題,全排列加四層循環=0ms 2046 Gap 2049 Finding Nemo 2078 Matrix 2083 Fractal 2157 Maze 2170 Lattice Animals 2182 LOst cows Accepted 2006 08-13 17:02 segment tree 2184 Cow Exibition 2197 Jill's Tour Paths 2225 Asteriods! Accepted 2251 Dungeon Master Accepted 2006-08-21 02:39三維迷宮BFS,簡單 2288 Islands and Bridges 2243 Knight Moves (BFS) Accepted 2312 Battle City (BFS) Accepted 2006-08-16 01:13一個int型數組定義爲char而痛苦WA了半天。 2331 Water Pipe 2339 Rock, Scissors, Paper 2340 Memory management 2349 Aratic Network 2362 Square Accepted 2006-08-02 2378 Tree Cutting 2386 Lake Counting Accepted 2006-08-14 04:50 Floodfill 2415 Hike on a Gragh Accepted 2006-08-21 01:51普通BFS 2488 A Knight's Journey 2547 No Tipping Accepted 2006-08-21 18:55 DFS+DP狀態壓縮 2676 Sudoku 2908 Quantum Accepted 2006-09-09 20:10 BFS+優先隊列 3620 Avoid The Lakes BFS floodfill