HDU 1506 Largest Rectangle in a Histogram(DP)

http://acm.hdu.edu.cn/showproblem.php?pid=1506 Problem Description A histogram is a polygon composed of a sequence of rectangles aligned at a commo...

2017-04-22 20:26:17

阅读数:181

评论数:0

vector的用法及基本操作

1.vector包含在头文件#include中 2.vector的定义形式为    vector a(变量名) 3.尾部插入数字   a.push_back(num) 4.可以使用数字下标来访问vector内的元素   例如  cout 5. 删除元素 a.erase(vec.begin...

2017-04-12 22:00:32

阅读数:586

评论数:0

HDU 1241 Oil Deposits

Oil Deposits Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 29700    Accepted Submission(s)...

2017-04-04 15:44:11

阅读数:203

评论数:0

链表的部分操作

#include #include struct node{ int data; struct node *next; }; int flag; //头插法创建链表  node *creat(struct node *head) { int x; struct node *p; he...

2017-04-01 18:44:49

阅读数:237

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭