原创 HDU 5532 Almost Sorted Array(狀態壓縮DP)

Almost Sorted Array Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others) Total Submiss

原创 POJ 3258 River Hopscotch(二分·最小距離最大)

River Hopscotch Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 11580 Accepted: 4985 Description Every

原创 HDU 3236 Gift Hunting(0-1揹包變異)

Gift Hunting Time Limit: 6000/3000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1

原创 Codeforces Round #367 (Div. 2)

                                                                                                                     

原创 HDU 2089 不要62(數位DP)

不要62 Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 31495   

原创 HDU 4451 Dressing(計數)

Dressing Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3807 

原创 HDU 5876 Sparse Graph(補圖+BFS最短路)

Sparse Graph Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others) Total Submission(s):

原创 TCP三次握手和四次握手

TCP是什麼? 具體的關於TCP是什麼,我不打算詳細的說了;當你看到這篇文章時,我想你也知道TCP的概念了,想要更深入的瞭解TCP的工作,我們就繼續。它只是一個超級麻煩的協議,而它又是互聯網的基礎,也是每個程序員必備的基本功。首先來看看O

原创 Hie with the Pie

http://poj.org/problem?id=3311 Hie with the Pie Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 5519

原创 POJ 1163 The Triangle(三種搜索方式)

The Triangle Description 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 (F

原创 淺談lua腳本類裝飾器裝飾器

最近剛進公司不久,學習了腳本語言Lua,今天重新理解了下裝飾器,感覺蠻簡單的,就是把一個函數的功能稍微修飾下。 1、先看這個簡單程序,求幾個數的最大值。 local function my_max( ... ) return math.

原创 http://codeforces.com/contest/721/problem/C Journey(DAG上的dp)

Journey time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard outp

原创 ZOJ 1986 Bridging Signals

Bridging Signals Time Limit: 2 Seconds      Memory Limit: 65536 KB 'Oh no, they've done it again', cries the chief

原创 CF Destroying Array(容器的使用)

Destroying Array time limit per test 1 second memory limit per test 256 megabytes input standard in

原创 ZOJ 1610 Count the Colors(線段樹,但暴力未必不行)

http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1610 Description Painting some colored segments on a li