zoj 3229 有源匯有上下界的最大流模板題 0),i連超級匯點(du[i]0)之和時,有可行流,否則沒有。 當有可行流時,刪除超級源點ss和超級終點d
poj 3321(很好的題目,參看了很多資料才整出來的) Apple Tree Time Limit: 2000MS Memory Limit:
hdu 4941 Magical Forest (map) #include #include #include #include #include
UVA - 10690 Expression Again Description Problem C Expression Again Input: s
HDU - 4944 FSF’s game Problem Description FSF has programmed a game. In this g
C++中stringstream ostringstream istringstream使用方式 C++引入了ostringstream、
CodeForces 370A Rook, Bishop and King(車,象,王到目的地的最小步數) Rook, Bishop and King Ti
hdu 4300 Clairewd’s message (KMP) 給定一個翻譯表,即第i個字母用哪個字母表示 再給一個串,裡面前面為密文,後面為明文
學習日記之職責鏈模式和Effective C++ 職責鏈模式(Chain of Responsibility):使多個對象都有機會處理請求,從而避免請求的發
HDU 1828 && POJ 1177 Picture(線段樹+掃描線+離散化) HDU題目地址:HDU 1828 PO
HDOJ 4939 Stupid Tower Defense red放到後面顯然更優,dp【i】【j】表示前i個塔裡有j個blue,最後枚舉有多少個re
hdu1828 Picture(線段樹+離散化+掃描線)兩種方法 C - Picture Time Limit:2000MS Memory L
hdu 3234 Exclusive-OR (並查集+異或性質) Exclusive-OR Time Limit: 2000/1000 MS (Ja
POJ訓練計劃1177_Picture(掃描線/線段樹+離散) 解題報告 題意: 求矩形周長和。 思路: 左掃上掃,掃過了。 #include #incl
hdu 1693 Eat the Trees (插頭dp入門) Eat the Trees Time Limit: 4000/2000 MS (Ja