原创 (複習)(轉)03進制狀態壓縮DP——HDU3001 Travelling 旅行商問題

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=3001 題目大意:n個城市之間有m條路,經過每條路徑都有一定的花費,當然有些城市是不可達的。 遍歷所有的城市,並且每個城市最多隻能

原创 poj 2823 單調隊列入門題(內含手寫隊列的學習和模板)

Sliding Window Time Limit: 12000MS   Memory Limit: 65536K Total Submissions: 39011   Accepted: 11554 Case Time Limi

原创 (待切)POJ 1926 Pollution 模擬/並查集

Pollution Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 3904   Accepted: 1034 Description The mana

原创 (複習)poj 1609 簡單dp

Tiling Up Blocks Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 5050   Accepted: 1975 Description M

原创 poj 1190 dfs+神剪枝

生日蛋糕 Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 14120   Accepted: 4971 Description 7月17日是Mr.W的生

原创 codeforces Queries for Number of Palindromes 區間dp

  H. Queries for Number of Palindromes time limit per test 5 seconds memory limit per test 256 megabytes input

原创 Codeforces 2B The least round way 動態規劃(分類討論)

B. The least round way time limit per test 5 seconds memory limit per test 64 megabytes input standard input

原创 (轉)C++文件的批處理——批量文件增刪改查

原博客地址:http://www.cnblogs.com/hanxi/archive/2012/07/22/2603584.html 一、統計代碼行數   幾個星期前做了個統計代碼的小程序,對文件的批處理需要獲取文件列表,因爲是在win

原创 Codeforces 4D Mysterious Present 求數對的最長上升序列 dp

D. Mysterious Present time limit per test 2 seconds memory limit per test 64 megabytes input standard input o

原创 (待做)Codeforces Round.6 D. Lizards and Basements 2 dp

D. Lizards and Basements 2 time limit per test 2 seconds memory limit per test 64 megabytes input standard input

原创 (複習) hdu 5037 frog~! 貪心策略

Frog Time Limit: 3000/1500 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 1376  

原创 (待切)hdu 4096 大模擬(用map做爆棧了!!)

Universal Question Answering System Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others

原创 (複習)poj 1952 最長下降子序列—— dp+方案個數

BUY LOW, BUY LOWER Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 8466   Accepted: 2930 Description

原创 Codeforces Round #274 (Div. 2) A,B,C

A. Expression time limit per test 1 second memory limit per test 256 megabytes input standard input output st

原创 【模擬專題】HDU-4121[弱校聯萌第一場]

A. Xiangqi Time Limit: 1000ms Memory Limit: 32768KB 64-bit integer IO format: %I64d      Java class name:Main Submi