zoj 3778 Talented Chef 貪心
題意:有n個餅,給出完成每個餅所需要的時間t1,t2,...,tn,現在有m個鍋(也就是說可以同時煎m個餅),問完成所有餅至少需要多少時間。限制:1 <=
STL upper_bound(),lower_bound()函數的學習+自己的實現
STL裡,這兩個函數用於在有序的數組裡找某個元素的位置,用法簡單提一下upper_bound(begin,end,key),start是查找的起點,end是終點
leetcode:Binary Tree Right Side View
一、 題目給你一個二叉樹,假設幾就站在樹的後邊,那麼此時你就只能看到最右邊的節點了。例如:1 <---/ \2 3 <---\ \5 4 <-
pku3090 Visible Lattice Points:人生第一個歐拉函數
這是一道很有紀念價值的題目! Visible Lattice Points Time Limit: 1000MS Memory Lim
POJ 1050 二維動態規劃轉變成枚舉加一維的動態規劃!
#include #include #include #include #include #include #include #include #include
hdu 3572 Task Schedule 最大流 Dinic算法,,卡時間。。建圖非常有講究
Task ScheduleTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K
nyoj 587 blockhouses(DFS)
blockhouses時間限制:1000 ms | 內存限制:65535 KB 難度:3 描述 Suppose that we have a square
Leetcode12: Search a 2D Matrix
Write an efficient algorithm that searches for a value in an m x n matrix. This
C++ GDI+ 帶陰影的文字功能的實現
用GDI+的優秀圖形輸出功能可以非常方便的實現文字特效,其中一個帶陰影的文字便是其中一例。許多簡單的文字特效只是簡單的將文字用不同的顏色與不同的位置輸出一次或多
poj 3046 Ant Counting 多項式乘法解可重組合數
題意:裸的求可重組合數。分析:多項式乘法求系數的應用啊,不用dp。代碼: //poj 3046//sep9#include using namespa
[Practical.Vim(2012.9)].Drew.Neil.Tip48 學習摘要
Move Word-Wise在Vim中以word為單位更加快速的左右移動快捷鍵為:直觀的展示如下這些快捷鍵可以和其他命令結合使用,快速選擇一個word。Take
HDU 4758 Walk Through Squares(自動機+DP)
On the beaming day of 60th anniversary of NJUST, as a military college which was
HDU3342 Legal or Not(拓撲排序)
Legal or NotTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (